service.libreelec.settings icon indicating copy to clipboard operation
service.libreelec.settings copied to clipboard

Set timezone via addon

Open antonlacon opened this issue 3 months ago • 0 comments

Initial implementation for selecting the OS's timezone via the settings addon. While it won't cause harm today, it's not intended to be merged until LE13 / Kodi 22P. Kodi 21 doesn't pick up on the change in timezone until reboot.

Also has cleanup commits for setting the hostname to follow same format as setting the timezone, to not run everytime Kodi starts, and to not save the hostname to the addon's configuration file.

TODO: ~~Tell user their current timezone (I'd prefer a menuitem 'type' that combines 'text' and 'button' so that the button displays the current value instead of the gear, but I don't know what my choices are and 'button' works today.)~~ Localization for timezone entries and combined hostname + timezone menus

~~Open question: The list of timezones is very long. This can be trimmed by dropping all of the deprecated timezones. For example, someone on the US east coast should be using "America/New_York" instead of "US/Eastern", so we could just omit "US/Eastern".~~

The timezone list doesn't include deprecated / repeat entries for the same timezone.

antonlacon avatar Apr 04 '24 00:04 antonlacon