ITS#10092 logging: fix strftime for Windows

Although %T is standard and documented in M$ docs, it actually doesn't work in MSVCRT.
This commit is contained in:
Howard Chu 2023-09-29 13:43:08 +01:00 committed by Quanah Gibson-Mount
parent 247e5bcdfb
commit 0b10f4a5b8

View File

@ -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;