ソースを参照

handle Pacific Daylight Time in addition to Pacific Standard Time

Dave Marquard 5 年 前
コミット
eb026ae4ac
1 ファイル変更1 行追加1 行削除
  1. 1 1
      reader/date/parser.go

+ 1 - 1
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")
 	}