mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
ifdef Y2K -> ifndef LOCALTIME
This commit is contained in:
parent
845e0073eb
commit
9f92954dff
@ -184,7 +184,7 @@ add_created_attrs( Operation *op, Entry *e )
|
||||
attr_merge( e, "creatorsname", bvals );
|
||||
|
||||
pthread_mutex_lock( ¤ttime_mutex );
|
||||
#ifdef LDAP_Y2K
|
||||
#ifndef LDAP_LOCALTIME
|
||||
ltm = gmtime( ¤ttime );
|
||||
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
|
||||
#else
|
||||
|
@ -251,7 +251,7 @@ add_lastmods( Operation *op, LDAPMod **mods )
|
||||
*mods = tmp;
|
||||
|
||||
pthread_mutex_lock( ¤ttime_mutex );
|
||||
#ifdef LDAP_Y2K
|
||||
#ifndef LDAP_LOCALTIME
|
||||
ltm = gmtime( ¤ttime );
|
||||
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
|
||||
#else
|
||||
|
@ -93,7 +93,7 @@ monitor_info( Connection *conn, Operation *op )
|
||||
nreadwaiters++;
|
||||
}
|
||||
pthread_mutex_lock( ¤ttime_mutex );
|
||||
#ifdef LDAP_Y2K
|
||||
#ifndef LDAP_LOCALTIME
|
||||
ltm = gmtime( &c[i].c_starttime );
|
||||
strftime( buf2, sizeof(buf2), "%Y%m%d%H%M%SZ", ltm );
|
||||
#else
|
||||
@ -162,7 +162,7 @@ monitor_info( Connection *conn, Operation *op )
|
||||
attr_merge( e, "bytessent", vals );
|
||||
|
||||
pthread_mutex_lock( ¤ttime_mutex );
|
||||
#ifdef LDAP_Y2K
|
||||
#ifndef LDAP_LOCALTIME
|
||||
ltm = gmtime( ¤ttime );
|
||||
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
|
||||
#else
|
||||
@ -175,7 +175,7 @@ monitor_info( Connection *conn, Operation *op )
|
||||
attr_merge( e, "currenttime", vals );
|
||||
|
||||
pthread_mutex_lock( ¤ttime_mutex );
|
||||
#ifdef LDAP_Y2K
|
||||
#ifndef LDAP_LOCALTIME
|
||||
ltm = gmtime( &starttime );
|
||||
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user