mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 19:20:00 -04:00
[master] fix win32 isc_time_set()
This commit is contained in:
parent
9c8c1a0485
commit
dc1cfff92a
1 changed files with 3 additions and 3 deletions
|
|
@ -91,8 +91,8 @@ isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) {
|
|||
|
||||
SystemTimeToFileTime(&epoch, &temp);
|
||||
|
||||
i1.LowPart = t->absolute.dwLowDateTime;
|
||||
i1.HighPart = t->absolute.dwHighDateTime;
|
||||
i1.LowPart = temp.dwLowDateTime;
|
||||
i1.HighPart = temp.dwHighDateTime;
|
||||
|
||||
i1.QuadPart += (unsigned __int64)nanoseconds/100;
|
||||
i1.QuadPart += (unsigned __int64)seconds*10000000;
|
||||
|
|
@ -352,7 +352,7 @@ isc_time_parsehttptimestamp(char *buf, isc_time_t *t) {
|
|||
|
||||
REQUIRE(buf != NULL);
|
||||
REQUIRE(t != NULL);
|
||||
p = strptime(buf, "%a, %d %b %Y %H:%M:%S %Z", &t_tm);
|
||||
p = strptime(buf, "%a, %d %b %Y %H:%M:%S", &t_tm);
|
||||
if (p == NULL)
|
||||
return (ISC_R_UNEXPECTED);
|
||||
when = timetfromtm(&t_tm);
|
||||
|
|
|
|||
Loading…
Reference in a new issue