←  [EN] Third-Party Development

Forums

»

Time zone

JediMaster420's Photo JediMaster420 21 Aug 2010

I found a bit of a problem with /etc/timezone.xml Arizona should be MST7 instead of MST7MDT. I made ticket 174 but someone suguested I post here too.
Quote

hemertje's Photo hemertje 21 Aug 2010

you may always post your comments and solutions here on this forum
Quote

JediMaster420's Photo JediMaster420 25 Aug 2010

So how long does it take for changes to be applied? I can't modify the xml on my box because it's not in /var or /tmp
Quote

hemertje's Photo hemertje 25 Aug 2010

as soon as anyone of our devs can have a look at it and put it online...
Quote

dAF2000's Photo dAF2000 25 Aug 2010

Please post in your ticket the exact changes. I need the exact changes because I cannot test it here of course.
Quote

JediMaster420's Photo JediMaster420 26 Aug 2010

It looks like the XML points to files in "/share/zoneinfo"
It looks like "setup > system settings > time" in the OpenPLI GUI coppies the file with the name mentioned in the XML from that directory to "/var/etc/localtime"
It looks like all those files are compiled binary files.
I don't know if you get those from somewhere or compile them yourself.
A new file for Arizona needs to be added that reflects it's non participation in DST, then it's name can be put in "/etc/timezone.xml"

##################################################
currently:

<zone name="(GMT-07:00) Arizona" zone="MST7MDT" />
##################################################


If you want to post a test file I belive I can copy it to "/var/etc/localtime" and try it out for you.
Quote

pieterg's Photo pieterg 26 Aug 2010

if there is an MST7 already, you don't need to compile new zoneinfo files; we can just edit the timezone.xml
Quote

JediMaster420's Photo JediMaster420 26 Aug 2010

Adelaide Calcutta Guam Kwajalein Santiago
Almaty Cape_Verde Harare MST7MDT Saskatchewan
Anchorage Caracas Hobart Magadan Seoul
Atlantic Casablanca Hong_Kong Midway Sydney
Auckland Colombo Honolulu Moscow Taipei
Azores Danmarkshavn Irkutsk Muscat Tashkent
Baghdad Darwin Istanbul Nairobi Tehran
Baku Dhaka Jerusalem Newfoundland Tijuana
Bangkok Dublin Kabul Noronha Tokyo
Bogota EST Katmandu Omsk Tongatapu
Brisbane EST5EDT Kinshasa Perth Vladivostok
CET East Krasnoyarsk Rangoon West
CST6CDT Fiji Kuala_Lumpur Riyadh Yakutsk

that is what I get from a "ls -a" none of that looks compatable. perhaps you were looking at an enigma2 box
Quote

pieterg's Photo pieterg 26 Aug 2010

I didn't look, as I don't have a 500.

Does the (more uptodate) zoneinfo set from the openembedded images contain a working info file for your timezone?

http://openpli.git.s...5328ee2fa7ca973
Quote

JediMaster420's Photo JediMaster420 27 Aug 2010

unfortunatly no, I'm gonna drop an e-mail to them to see if they can add it.
Quote

JediMaster420's Photo JediMaster420 29 Aug 2010

I'm not getting a response a from them, don't know what to do next.
Quote

JediMaster420's Photo JediMaster420 31 Aug 2010

http://distfiles.gen...ds/current-iso/
had some time zone files compiled for PPC. I can't test it because /var/tuxbox/config/enigma/config may be involed in making sure /var/etc/localtime links back to the "timezone.xml"

Let me know how I can help test it.

Attached Files

Quote

JediMaster420's Photo JediMaster420 31 Aug 2010

Just wen through the sub directories and found lots of different files that may be the one. Anything that says MST, Arizona, Phoenix or GMT-7. The MST file I posted on my ticket came from the root directory. Sorry for messing this up so bad.
Quote

JediMaster420's Photo JediMaster420 31 Aug 2010

OK, found out that the file I posted in my ticket DOES work, just reverts after reboot or reload of settings. (set my box to a time zone that was WAY off to test) So the stuff I posted in my ticket will fix it for sure.
Quote

JediMaster420's Photo JediMaster420 1 Sep 2010

I manualy edited /var/tuxbox/config/enigma/config to say something not recognised in the XML, coppied MST to /var/etc/localtime and got it to stick :)
Quote

JediMaster420's Photo JediMaster420 2 Sep 2010

So how do we go from here to add the 118byte timezone file and xml changes to the nightly build?
Quote

pieterg's Photo pieterg 2 Sep 2010

ok, I've added the MST timezone (both for CDK and OE images)
Quote