regebro / tzlocal

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

Can't get timezone on windows 10 #103

Closed KernelErr closed 3 years ago

KernelErr commented 3 years ago

Hi, I encountered an error that tzlocal can't get local timezone. So I checked my registry and didn't find a key named 'TimeZoneKetName'. Only after I changed my timezone in the time settings manually, this key would appear. Seems that Windows wouldn't create this registry in the first run. Is it necessary to fix this problem? Thanks.

regebro commented 3 years ago

Strange that it didn't exist. But I don't think it's possible to fix it, except do what you did.

synodriver commented 3 years ago

Well,you should configure the timezone again in the control panel,then it should work. (I fixed it just now.)

synodriver commented 3 years ago

Well,you should configure the timezone again in the control panel,then it should work. (I fixed it just now.)

The strange thing is that it suddenly appeared after runing for few days.