regebro / tzlocal

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

[Feature]/Add TZ env switch to windows #114

Closed serialbandicoot closed 2 years ago

serialbandicoot commented 2 years ago

Added in a PR for creating Win32 registry switch for setting TZ. I've made the assumption that the method get_localzone() will still validate against the assert_tz_offset. The alternative was to ignore this check and as long as the TZ provided was valid against windows_tz return it. I thought it was better to maintain this check.

Note: Related to the Win10 conversation in #79

regebro commented 2 years ago

That looks good! Thanks!

Can you add yourself to the contributors list, and add a note about this in CHANGES.txt?

serialbandicoot commented 2 years ago

Hi @regebro brilliant great lib, so happy to contribute.

Changes and Readme updated, hopefully all done correct. 👍