mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
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:
parent
247e5bcdfb
commit
0b10f4a5b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user