I want to get next day @ midnight of a given date. So far I'm using:
givenDate.Add(time.Hour * time.Duration(24))
Problem is with certain timezones where I stay on the same day if I add 24h. In France, they change hours once in a while.
Is it safe to use the following to add a single day ?
time.Date(givenDate.Year(), givenDate.Month(), givenDate.Day()+1, 0, 0, 0, 0, loc)
loc
being time.UTC in the given example.