From 845e0073ebce339b964bbbb4ac3add09c67971bd Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 21 Oct 1998 19:29:20 +0000 Subject: [PATCH] more localtime -> gmtime changes --- servers/slapd/monitor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/monitor.c b/servers/slapd/monitor.c index 6a3403ea92..8667bf2ca4 100644 --- a/servers/slapd/monitor.c +++ b/servers/slapd/monitor.c @@ -162,10 +162,11 @@ monitor_info( Connection *conn, Operation *op ) 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 ); @@ -174,10 +175,11 @@ monitor_info( Connection *conn, Operation *op ) 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 ); -- 2.39.5