2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

Bug #1671 isc_time_now was erroneously calling strtime()

This commit is contained in:
Danny Mayer 2001-08-29 05:13:42 +00:00
parent 9559bf89b1
commit 06b47b13db

View File

@ -15,7 +15,7 @@
* 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
@ -139,13 +139,11 @@ isc_time_isepoch(isc_time_t *t) {
isc_result_t
isc_time_now(isc_time_t *t) {
char dtime[10];
REQUIRE(t != NULL);
GetSystemTimeAsFileTime(&t->absolute);
_strtime(dtime);
return (ISC_R_SUCCESS);
}