Posts: 204
Joined: Oct 2012
Reputation:
1
powlo
Senior Member
Posts: 204
I can see that the timezone can be set under Appearance > Settings > International, but how can I access this setting in my script?
There doesn't seem to be any documentation.
Efforts such as xbmc.getInfoLabel('System.Timezone') don't work. (String 'System.Timezone' is echoed back)
I need something that can be dropped into pytz and works in Frodo, so I need 'Europe/London' etc.
Ta.
Posts: 204
Joined: Oct 2012
Reputation:
1
powlo
Senior Member
Posts: 204
2014-04-07, 18:52
(This post was last modified: 2014-04-07, 18:53 by powlo.)
Does that respect XBMC settings?
[Edit: Martijn got there before me]
Posts: 2,127
Joined: Jan 2015
Reputation:
60
Razze
Team-Kodi Member
Posts: 2,127
Just returning {"id":1,"jsonrpc":"2.0","result":{"value":"default"}} for me on win 8.1. The setting is missing from the menu so I thought it would be set internally.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
returns {"id":1,"jsonrpc":"2.0","result":{"value":"Europe/Amsterdam"}} for me.
the settings is located here:
settings > appearance > international > timezone.
and make sure the 'settings level' is at least 'standard'.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
ah, didn't know that. apparently it's indeed os dependend.
Posts: 2,127
Joined: Jan 2015
Reputation:
60
Razze
Team-Kodi Member
Posts: 2,127
For reference I'm now ignoring the kodi setting and get the local timezone from dateutil. Should do the trick.