Skip to content
Snippets Groups Projects
Commit 9f92954d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ifdef Y2K -> ifndef LOCALTIME

parent 845e0073
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment