1
0
Fork 0

handle Pacific Daylight Time in addition to Pacific Standard Time

This commit is contained in:
Dave Marquard 2020-09-22 13:31:04 -07:00 committed by Frédéric Guillot
parent 38d3b28445
commit eb026ae4ac

View file

@ -243,7 +243,7 @@ func parseLocalTimeDates(layout, ds string) (t time.Time, err error) {
loc := time.UTC loc := time.UTC
// Workaround for dates that don't use GMT. // Workaround for dates that don't use GMT.
if strings.HasSuffix(ds, "PST") { if strings.HasSuffix(ds, "PST") || strings.HasSuffix(ds, "PDT") {
loc, _ = time.LoadLocation("America/Los_Angeles") loc, _ = time.LoadLocation("America/Los_Angeles")
} }