From 9f92954dff09295d6d6c32725ece13a96c5e38a9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 21 Oct 1998 19:35:30 +0000 Subject: [PATCH] ifdef Y2K -> ifndef LOCALTIME --- servers/slapd/add.c | 2 +- servers/slapd/modify.c | 2 +- servers/slapd/monitor.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/servers/slapd/add.c b/servers/slapd/add.c index ec233cd6a5..b05acd47fc 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -184,7 +184,7 @@ add_created_attrs( Operation *op, Entry *e ) attr_merge( e, "creatorsname", bvals ); pthread_mutex_lock( ¤ttime_mutex ); -#ifdef LDAP_Y2K +#ifndef LDAP_LOCALTIME ltm = gmtime( ¤ttime ); strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm ); #else diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index ff6d4dd047..2629291563 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -251,7 +251,7 @@ add_lastmods( Operation *op, LDAPMod **mods ) *mods = tmp; pthread_mutex_lock( ¤ttime_mutex ); -#ifdef LDAP_Y2K +#ifndef LDAP_LOCALTIME ltm = gmtime( ¤ttime ); strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm ); #else diff --git a/servers/slapd/monitor.c b/servers/slapd/monitor.c index 8667bf2ca4..595095d866 100644 --- a/servers/slapd/monitor.c +++ b/servers/slapd/monitor.c @@ -93,7 +93,7 @@ monitor_info( Connection *conn, Operation *op ) nreadwaiters++; } pthread_mutex_lock( ¤ttime_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( ¤ttime_mutex ); -#ifdef LDAP_Y2K +#ifndef LDAP_LOCALTIME ltm = gmtime( ¤ttime ); 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( ¤ttime_mutex ); -#ifdef LDAP_Y2K +#ifndef LDAP_LOCALTIME ltm = gmtime( &starttime ); strftime( buf, sizeof(buf), "%Y%m%d%H%M%SZ", ltm ); #else -- 2.39.5