ifdef Y2K -> ifndef LOCALTIME

This commit is contained in:
Kurt Zeilenga 1998-10-21 19:35:30 +00:00
parent 845e0073eb
commit 9f92954dff
3 changed files with 5 additions and 5 deletions

View File

@ -184,7 +184,7 @@ add_created_attrs( Operation *op, Entry *e )
attr_merge( e, "creatorsname", bvals );
pthread_mutex_lock( &currenttime_mutex );
#ifdef LDAP_Y2K
#ifndef LDAP_LOCALTIME
ltm = gmtime( &currenttime );
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
#else

View File

@ -251,7 +251,7 @@ add_lastmods( Operation *op, LDAPMod **mods )
*mods = tmp;
pthread_mutex_lock( &currenttime_mutex );
#ifdef LDAP_Y2K
#ifndef LDAP_LOCALTIME
ltm = gmtime( &currenttime );
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
#else

View File

@ -93,7 +93,7 @@ monitor_info( Connection *conn, Operation *op )
nreadwaiters++;
}
pthread_mutex_lock( &currenttime_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( &currenttime_mutex );
#ifdef LDAP_Y2K
#ifndef LDAP_LOCALTIME
ltm = gmtime( &currenttime );
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( &currenttime_mutex );
#ifdef LDAP_Y2K
#ifndef LDAP_LOCALTIME
ltm = gmtime( &starttime );
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
#else