1
0
Fork 0

handle Pacific Daylight Time in addition to Pacific Standard Time

pull/807/head
Dave Marquard vor 4 Jahren committet von Frédéric Guillot
Ursprung 38d3b28445
Commit eb026ae4ac
  1. 2
      reader/date/parser.go

@ -243,7 +243,7 @@ func parseLocalTimeDates(layout, ds string) (t time.Time, err error) {
loc := time.UTC
// 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")
}

Laden…
Abbrechen
Speichern