[v9_9] fix isc_time_formathttptmestamp() on win32

3539.	[port]		win32: timestamp format didn't match other platforms.
(cherry picked from commit 99bf6a57d9)
This commit is contained in:
Evan Hunt
2013-04-01 22:29:22 -07:00
parent 582eff2d4b
commit 28725526fd
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
3539. [port] win32: timestamp format didn't match other platforms.
--- 9.9.3rc1 released ---
3538. [test] Running "make test" now requires loopback interfaces
+1 -1
View File
@@ -287,7 +287,7 @@ isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) {
REQUIRE(len > 0);
if (FileTimeToSystemTime(&t->absolute, &st)) {
GetDateFormat(LOCALE_USER_DEFAULT, 0, &st,
"ddd',', dd-MMM-yyyy", DateBuf, 50);
"ddd',' dd MMM yyyy", DateBuf, 50);
GetTimeFormat(LOCALE_USER_DEFAULT,
TIME_NOTIMEMARKER | TIME_FORCE24HOURFORMAT,
&st, "hh':'mm':'ss", TimeBuf, 50);