regebro / tzlocal

A Python module that tries to figure out what your local timezone is

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get timezone on windows 10

KernelErr opened this issue · comments

commented

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.

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

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

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.