mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
more localtime -> gmtime changes
This commit is contained in:
parent
68a473e6af
commit
845e0073eb
1 changed files with 4 additions and 2 deletions
|
|
@ -162,10 +162,11 @@ monitor_info( Connection *conn, Operation *op )
|
|||
attr_merge( e, "bytessent", vals );
|
||||
|
||||
pthread_mutex_lock( ¤ttime_mutex );
|
||||
ltm = localtime( ¤ttime );
|
||||
#ifdef LDAP_Y2K
|
||||
ltm = gmtime( ¤ttime );
|
||||
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
|
||||
#else
|
||||
ltm = localtime( ¤ttime );
|
||||
strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );
|
||||
#endif
|
||||
pthread_mutex_unlock( ¤ttime_mutex );
|
||||
|
|
@ -174,10 +175,11 @@ monitor_info( Connection *conn, Operation *op )
|
|||
attr_merge( e, "currenttime", vals );
|
||||
|
||||
pthread_mutex_lock( ¤ttime_mutex );
|
||||
ltm = localtime( &starttime );
|
||||
#ifdef LDAP_Y2K
|
||||
ltm = gmtime( &starttime );
|
||||
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
|
||||
#else
|
||||
ltm = localtime( &starttime );
|
||||
strftime( buf, sizeof(buf), "%y%m%d%H%M%SZ", ltm );
|
||||
#endif
|
||||
pthread_mutex_unlock( ¤ttime_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue