mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
Bug #1671 isc_time_now was erroneously calling strtime()
This commit is contained in:
parent
9559bf89b1
commit
06b47b13db
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: time.c,v 1.23 2001/07/09 21:06:22 gson Exp $ */
|
/* $Id: time.c,v 1.24 2001/08/29 05:13:42 mayer Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Windows has a different epoch than Unix. Therefore this code sets the epoch
|
* Windows has a different epoch than Unix. Therefore this code sets the epoch
|
||||||
@ -139,13 +139,11 @@ isc_time_isepoch(isc_time_t *t) {
|
|||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
isc_time_now(isc_time_t *t) {
|
isc_time_now(isc_time_t *t) {
|
||||||
char dtime[10];
|
|
||||||
|
|
||||||
REQUIRE(t != NULL);
|
REQUIRE(t != NULL);
|
||||||
|
|
||||||
GetSystemTimeAsFileTime(&t->absolute);
|
GetSystemTimeAsFileTime(&t->absolute);
|
||||||
|
|
||||||
_strtime(dtime);
|
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user