diff options
author | Phil Sutter <phil@nwl.cc> | 2023-01-11 11:26:41 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-01-13 17:11:18 +0100 |
commit | db6e97bd667bf205cee22049f9d0fd6550cb43a7 (patch) | |
tree | 554708f61001a0f775e9607726bcf56335462bb6 | |
parent | 927d5674e7bf656428f97c54c9171006e8c3c75e (diff) |
meta: parse_iso_date() returns boolean
Returning ts if 'ts == (time_t) -1' signals success to caller despite
failure.
Fixes: 4460b839b945a ("meta: fix compiler warning in date_type_parse()")
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | src/meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -433,7 +433,7 @@ success: cur_tm = localtime(&ts); if (ts == (time_t) -1 || cur_tm == NULL) - return ts; + return false; /* Substract tm_gmtoff to get the current time */ *tstamp = ts - cur_tm->tm_gmtoff; |