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
Hello, I'm having some problems with timezone conversions from "US/Eastern" to "UTC" but only when using the pytz as tzinfo creating a datetime object.
here is an example:
When I create the date using the timezone as UTC then converted to US/Eastern the conversion is done correctly without any issue, giving me a difference of 4 hour as it should
so when the conversion is done in one direction it consider the correct difference 4 hours, but on the other direction if 4:56.
On the other hand if I do the conversion using localize the conversion is done correctly, so there is a problem on the conversion when the object is created using the timezone from pytz (but just when converting to UTC not the opposite)
Hello, I'm having some problems with timezone conversions from "US/Eastern" to "UTC" but only when using the pytz as tzinfo creating a datetime object.
here is an example:
When I create the date using the timezone as UTC then converted to US/Eastern the conversion is done correctly without any issue, giving me a difference of 4 hour as it should
But when I do the opposite conversion the calculation is incorrect, adding 56 minutes. as demonstrated below.
so when the conversion is done in one direction it consider the correct difference 4 hours, but on the other direction if 4:56.
On the other hand if I do the conversion using localize the conversion is done correctly, so there is a problem on the conversion when the object is created using the timezone from pytz (but just when converting to UTC not the opposite)
I hope I have given enough information about the error, as I said is possible to do a workaround but would be interesting to correct that.
Thank you.
The text was updated successfully, but these errors were encountered: