Skip to content

Commit

Permalink
handle Pacific Daylight Time in addition to Pacific Standard Time
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-atx authored and fguillot committed Sep 23, 2020
1 parent 38d3b28 commit eb026ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader/date/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit eb026ae

Please sign in to comment.