Commit 99bf6a57 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] fix isc_time_formathttptmestamp() on win32

3539.	[port]		win32: timestamp format didn't match other platforms.
parent 49f29a1d
3539. [port] win32: timestamp format didn't match other platforms.
3538. [test] Running "make test" now requires loopback interfaces 3538. [test] Running "make test" now requires loopback interfaces
to be set up. [RT #32452] to be set up. [RT #32452]
......
...@@ -287,7 +287,7 @@ isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) { ...@@ -287,7 +287,7 @@ isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) {
REQUIRE(len > 0); REQUIRE(len > 0);
if (FileTimeToSystemTime(&t->absolute, &st)) { if (FileTimeToSystemTime(&t->absolute, &st)) {
GetDateFormat(LOCALE_USER_DEFAULT, 0, &st, GetDateFormat(LOCALE_USER_DEFAULT, 0, &st,
"ddd',', dd-MMM-yyyy", DateBuf, 50); "ddd',' dd MMM yyyy", DateBuf, 50);
GetTimeFormat(LOCALE_USER_DEFAULT, GetTimeFormat(LOCALE_USER_DEFAULT,
TIME_NOTIMEMARKER | TIME_FORCE24HOURFORMAT, TIME_NOTIMEMARKER | TIME_FORCE24HOURFORMAT,
&st, "hh':'mm':'ss", TimeBuf, 50); &st, "hh':'mm':'ss", TimeBuf, 50);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment