From d78f05e91bb3a87a73b1d3fad29362447ee8e1f6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 26 Mar 2019 15:40:00 -0500 Subject: Make touch use xparsedate() (result: -t and -d the same, autodetects format), and fix tests to pass on host too. --- toys/posix/date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/date.c') diff --git a/toys/posix/date.c b/toys/posix/date.c index 685ac8bf..a1762854 100644 --- a/toys/posix/date.c +++ b/toys/posix/date.c @@ -77,7 +77,7 @@ static void parse_date(char *str, time_t *t) tzset(); } time(t); - xparsedate(str, t, &TT.nano); + xparsedate(str, t, &TT.nano, 1); if (new_tz) { if (old_tz) setenv("TZ", old_tz, 1); else unsetenv("TZ"); -- cgit v1.2.3