Commit 9f92954d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ifdef Y2K -> ifndef LOCALTIME

parent 845e0073
...@@ -184,7 +184,7 @@ add_created_attrs( Operation *op, Entry *e ) ...@@ -184,7 +184,7 @@ add_created_attrs( Operation *op, Entry *e )
attr_merge( e, "creatorsname", bvals ); attr_merge( e, "creatorsname", bvals );
pthread_mutex_lock( &currenttime_mutex ); pthread_mutex_lock( &currenttime_mutex );
#ifdef LDAP_Y2K #ifndef LDAP_LOCALTIME
ltm = gmtime( &currenttime ); ltm = gmtime( &currenttime );
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm ); strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
#else #else
......
...@@ -251,7 +251,7 @@ add_lastmods( Operation *op, LDAPMod **mods ) ...@@ -251,7 +251,7 @@ add_lastmods( Operation *op, LDAPMod **mods )
*mods = tmp; *mods = tmp;
pthread_mutex_lock( &currenttime_mutex ); pthread_mutex_lock( &currenttime_mutex );
#ifdef LDAP_Y2K #ifndef LDAP_LOCALTIME
ltm = gmtime( &currenttime ); ltm = gmtime( &currenttime );
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm ); strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
#else #else
......
...@@ -93,7 +93,7 @@ monitor_info( Connection *conn, Operation *op ) ...@@ -93,7 +93,7 @@ monitor_info( Connection *conn, Operation *op )
nreadwaiters++; nreadwaiters++;
} }
pthread_mutex_lock( &currenttime_mutex ); pthread_mutex_lock( &currenttime_mutex );
#ifdef LDAP_Y2K #ifndef LDAP_LOCALTIME
ltm = gmtime( &c[i].c_starttime ); ltm = gmtime( &c[i].c_starttime );
strftime( buf2, sizeof(buf2), "%Y%m%d%H%M%SZ", ltm ); strftime( buf2, sizeof(buf2), "%Y%m%d%H%M%SZ", ltm );
#else #else
...@@ -162,7 +162,7 @@ monitor_info( Connection *conn, Operation *op ) ...@@ -162,7 +162,7 @@ monitor_info( Connection *conn, Operation *op )
attr_merge( e, "bytessent", vals ); attr_merge( e, "bytessent", vals );
pthread_mutex_lock( &currenttime_mutex ); pthread_mutex_lock( &currenttime_mutex );
#ifdef LDAP_Y2K #ifndef LDAP_LOCALTIME
ltm = gmtime( &currenttime ); ltm = gmtime( &currenttime );
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm ); strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
#else #else
...@@ -175,7 +175,7 @@ monitor_info( Connection *conn, Operation *op ) ...@@ -175,7 +175,7 @@ monitor_info( Connection *conn, Operation *op )
attr_merge( e, "currenttime", vals ); attr_merge( e, "currenttime", vals );
pthread_mutex_lock( &currenttime_mutex ); pthread_mutex_lock( &currenttime_mutex );
#ifdef LDAP_Y2K #ifndef LDAP_LOCALTIME
ltm = gmtime( &starttime ); ltm = gmtime( &starttime );
strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm ); strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm );
#else #else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment