regebro / tzlocal

A Python module that tries to figure out what your local timezone is
MIT License
184 stars 58 forks source link

Possible Bug: Can not find timezone Tocantins Standard Time #130

Closed Saijin-Naib closed 2 years ago

Saijin-Naib commented 2 years ago

image

"python:     TIME_ZONE = tzlocal.get_localzone().zone\r\n  File \"\\grass78\\Python39\\lib\\site-packages\\tzlocal\\win32.py\", line 87, in get_localzone\r\n"
"python:     _cache_tz = pytz.timezone(get_localzone_name())\r\n  File \"\\grass78\\Python39\\lib\\site-packages\\tzlocal\\win32.py\", line 79, in get_localzone_name\r\n"
"python:     raise pytz.UnknownTimeZoneError('Can not find timezone ' + tzkeyname)\r\npytz.exceptions.UnknownTimeZoneError: 'Can not find timezone Tocantins Standard Time'\r\n"
"python: exited with code 1"
regebro commented 2 years ago

Tocantins Standard Time is in the list of timezones, and has been since 2017, so I don't know how that can have happened, unless you somehow are using version 1.3.

Saijin-Naib commented 2 years ago

Yep, that'll do it. We're still using v1.3.

Sorry for the noise!