path-util: when parsing a timestamp we don't know the timezone

This commit is contained in:
Lennart Poettering 2012-11-23 22:52:38 +01:00
parent 9185c8e626
commit 6a741b4a2b
1 changed files with 1 additions and 0 deletions

View File

@ -312,6 +312,7 @@ int parse_timestamp(const char *t, usec_t *usec) {
x = time(NULL);
assert_se(localtime_r(&x, &tm));
tm.tm_isdst = -1;
if (streq(t, "now"))
goto finish;