[go-nuts] time.Truncate unexpected results in non-hour aligned timezones

2022-08-23 Thread Mine GO BOOM
Our system recently experienced a bug because of the surprise that sits (documented) inside of time.Truncate() : """ Truncate operates on the time as an absolute duration since the zero time; it does not operate on the presentation form of the time. Thus,

Re: [go-nuts] time.Truncate unexpected results in non-hour aligned timezones

2022-08-23 Thread 'Dan Kortschak' via golang-nuts
On Tue, 2022-08-23 at 23:07 -0700, Mine GO BOOM wrote: > Our system recently experienced a bug because of the surprise that > sits (documented) inside of time.Truncate(): > > """ > Truncate operates on the time as an absolute duration since the zero > time; it does not operate on the presentation f