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 );
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 );