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
There is an inconsistency when converting a datetime that is in UTC to pytz.timezone('America/Sao_Paulo'), instead of discounting 3 hours, it is only discounting 2 hours, the library is considering that Brazil is in daylight saving time, that no longer exists.
To get the correct conversion, you need to use pytz.timezone('Etc/GMT+3')
Fix the 'America/Sao_Paulo' to discount the hours in the correct way
The text was updated successfully, but these errors were encountered:
You are probably using pytz incorrectly. It has a few quirks. If you are able to, you should use zoneinfo (Python >= 3.9) or backports.zoneinfo (Python < 3.9) instead.
There is an inconsistency when converting a datetime that is in UTC to pytz.timezone('America/Sao_Paulo'), instead of discounting 3 hours, it is only discounting 2 hours, the library is considering that Brazil is in daylight saving time, that no longer exists.
To get the correct conversion, you need to use pytz.timezone('Etc/GMT+3')
Fix the 'America/Sao_Paulo' to discount the hours in the correct way
The text was updated successfully, but these errors were encountered: