You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before the patch there was a double behavior:
1. If a user create Datetime from time.Time then Datetime.ToTime()
return an original time value with an original timezone.
2. If an Tarantool returns Datetime then we use a timezone with a
fixed offset. We need it to avoid changes of the timezone if a user
create a new Datetime from a Datetime.ToTime() value.
As a result, it was was possible to get different behaviors when
a user use time.Time.AddDate() or time.Time.Add() for DST timezones.
One possible solution is to always return a time with a fixed offset
from Datetime.ToTime() and recommend to use Datetime.Add() or
Datetime.Sub() for change time values.
0 commit comments