by panic · 11y ago · 0 comments
fmt.Printf("\n... and %v days after that ...\n", days)
t2 := t1.Add(time.Duration(days) * time.Hour * 24)
printTime(t2)
How is that supposed to work with daylight saving time? Won't t2 end up one hour off from t1 if there is a daylight saving shift?If you format it in different timezones (PDT and PST) then yeah, the formatted times will be at different hours of the day.