diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-02-13 16:30:05 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-02-13 16:39:30 -0500 |
commit | 95f862fdd82a99e30bbf2c43009ec9a51e416804 (patch) | |
tree | 0edafaf7a69935d56dc4ce8b442325e12dfd88ff /tests/test_newermt_epoch_minus_one.out | |
parent | 2cdc648441794db0f84518f79e8aaf3ead68f110 (diff) | |
download | bfs-95f862fdd82a99e30bbf2c43009ec9a51e416804.tar.xz |
parse: Handle 1969-12-31T23:59:59Z
mktime() returns -1 on error, but also for one second before the epoch.
Compare the input against localtime(-1) to distinguish those cases.
Diffstat (limited to 'tests/test_newermt_epoch_minus_one.out')
-rw-r--r-- | tests/test_newermt_epoch_minus_one.out | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_newermt_epoch_minus_one.out b/tests/test_newermt_epoch_minus_one.out new file mode 100644 index 0000000..f7f63b0 --- /dev/null +++ b/tests/test_newermt_epoch_minus_one.out @@ -0,0 +1,5 @@ +times +times/a +times/b +times/c +times/l |