Explorar el Código

handle Pacific Daylight Time in addition to Pacific Standard Time

Dave Marquard hace 5 años
padre
commit
eb026ae4ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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")
 	}