Browse Source

handle Pacific Daylight Time in addition to Pacific Standard Time

tags/2.0.24
Dave Marquard Frédéric Guillot 1 month ago
parent
commit
eb026ae4ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      reader/date/parser.go

+ 1
- 1
reader/date/parser.go View File

@@ -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")
}



Loading…
Cancel
Save