Swap generous date parsing to using a library

This commit is contained in:
David Dworken
2022-04-11 23:22:49 -07:00
parent 7d2eb878ac
commit fb52b98379
5 changed files with 11 additions and 32 deletions

View File

@ -40,7 +40,7 @@ func TestParseTimeGenerously(t *testing.T) {
}
ts, err = parseTimeGenerously("2006-01-02")
shared.Check(t, err)
if ts.Unix() != 1136160000 {
if ts.Unix() != 1136188800 {
t.Fatalf("parsed time incorrectly: %d", ts.Unix())
}
}