X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/9646482db2f5429ce1bcbeaebeb85c9c1b9af87c..6bfaa2a13ca6f49a2b0635e1e0a909bac5c07d15:/libtests/t-dateparse.c diff --git a/libtests/t-dateparse.c b/libtests/t-dateparse.c index a0a3b0d..7926e01 100644 --- a/libtests/t-dateparse.c +++ b/libtests/t-dateparse.c @@ -33,7 +33,7 @@ static void check_date(time_t when, } static void test_dateparse(void) { - time_t now = time(0); + time_t now = xtime(0); check_date(now, "%Y-%m-%d %H:%M:%S", localtime); #if 0 /* see dateparse.c */ check_date(now, "%Y-%m-%d %H:%M:%S %Z", localtime);