From 0b10f4a5b8853e2b05d85f8d5db4883617eaf55d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 29 Sep 2023 13:43:08 +0100 Subject: [PATCH] ITS#10092 logging: fix strftime for Windows Although %T is standard and documented in M$ docs, it actually doesn't work in MSVCRT. --- servers/slapd/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;