From: Howard Chu Date: Fri, 29 Sep 2023 12:43:08 +0000 (+0100) Subject: ITS#10092 logging: fix strftime for Windows X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b10f4a5b8853e2b05d85f8d5db4883617eaf55d;p=thirdparty%2Fopenldap.git ITS#10092 logging: fix strftime for Windows Although %T is standard and documented in M$ docs, it actually doesn't work in MSVCRT. --- diff --git a/servers/slapd/logging.c b/servers/slapd/logging.c index f66213d6d9..5d96e247d5 100644 --- a/servers/slapd/logging.c +++ b/servers/slapd/logging.c @@ -151,7 +151,7 @@ slap_debug_print( const char *data ) ptr = syslog_prefix; #endif strftime( ptr, sizeof( SYSLOG_STAMP ), - "%b %d %T", &tm ); + "%b %d %H:%M:%S", &tm ); ptr[ sizeof( SYSLOG_STAMP )-1 ] = ' '; #ifdef _WIN32 len = datalen + splen;