Jump to content


Photo

timezone


  • Please log in to reply
44 replies to this topic

Re: timezone #21 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 29 October 2017 - 17:27

A linux OS uses the tzdata package, which has your iana link as source.

 

But in OpenEmbedded, this package is split into different sub-packages for space reasons, zo you have tzdata-europe, tzdata-asia, etc. Appearently that was still too big and/or not handy for the boxes in the beginning of the OpenPLi era, since there is a custom recipe that splits of a few entries for each timezone, and then maps other timezone names to it. So you have all the Western European, and African cities pointing to the "CET" timezone definition, which is not correct in all cases..

 

So the UI should give the user to select the correct timezone, as supported by tzdata.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #22 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 29 October 2017 - 18:01

I can assure you that, in Estonia, as well in relation to the time of the winter at one hour wrong at the moment with PLi.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: timezone #23 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 29 October 2017 - 18:12

That wouldn't suprise me, as I wrote before, most of the entries for a timezone as mapped to the same tzdata entry.

 

For Tallinn:

<zone name="(GMT+02:00) Riga, Tallinn, Vilnius" zone="Europe/Istanbul" />

which is the same problem as was reported earlier. Because Istanbul is a bad guess for GMT+2 at the moment. But it is the only European city in the list:

<zone name="(GMT+02:00) Athens, Istanbul" zone="Europe/Istanbul" />
<zone name="(GMT+02:00) Bucharest" zone="Europe/Istanbul" />
<zone name="(GMT+02:00) Harare, Pretoria" zone="Africa/Harare" />
<zone name="(GMT+02:00) Helsinki, Kyiv, Sofia" zone="Europe/Istanbul" />
<zone name="(GMT+02:00) Riga, Tallinn, Vilnius" zone="Europe/Istanbul" />
<zone name="(GMT+02:00) Jerusalem" zone="Asia/Jerusalem" />

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #24 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 29 October 2017 - 18:28

So you suggest to manually change it to a better zone? It sounds ridiculous in this century.
On the other hand, my wife insists that the time must be right and the timer recordings must be run on time.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: timezone #25 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 29 October 2017 - 18:35

Just install tzdata-europe and correct the /usr/share/enigma2/timezone.xml

eg.

opkg install tzdata-europe
sed -i 's#Europe/Istanbul#Europe/Athens#'g /usr/share/enigma2/timezone.xml
init 4 && sync && init 3

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: timezone #26 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 29 October 2017 - 18:37

Just install tzdata-europe and correct the /usr/share/enigma2/timezone.xml

 

Exactly.

 

 

So you suggest to manually change it to a better zone? It sounds ridiculous in this century.
On the other hand, my wife insists that the time must be right and the timer recordings must be run on time.

 

The alternative is that you wait until someone has time to look into this. The way it works now has been in there for 10 years, I'm sure it will be addressed before the next DST change. ;)


Edited by WanWizard, 29 October 2017 - 18:52.

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #27 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 29 October 2017 - 18:48

OK, thank you, I'm going to do it.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: timezone #28 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 29 October 2017 - 19:03

As a quick fix, I've added Athens, and replaced the other GMT+2 entries (except Istanbul) with Europe/Athens. Will be in tomorrows 6.0-release update (if the build doesn't fail).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #29 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 29 October 2017 - 19:29

I report back, that this solution works well here and did the job out here
https://forums.openp...e-2#entry789895

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: timezone #30 hariskar

  • Member
  • 15 posts

0
Neutral

Posted 30 October 2017 - 06:44

i do understand but you are doing something wrong because you are the only one with this problem

first of all you have to choose GMT+1 but there are different ones(see screenshots)

attachicon.gifscreenshot.jpgattachicon.gifscreenshot1.jpgattachicon.gifscreenshot2.jpgattachicon.gifscreenshot3.jpgattachicon.gifscreenshot4.jpg

 

did you tried one of these?

 

grtz Philip

 

 

Same problem here, I have this problem too since 28/10: In Greece we put time 1 hour ago but openpli did not adjust time.


Edited by hariskar, 30 October 2017 - 06:47.


Re: timezone #31 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 30 October 2017 - 12:35

Athens has been added, will be available later today, if we can manage to make the oscam builds work again. ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #32 imperia

  • Senior Member
  • 140 posts

+2
Neutral

Posted 1 November 2017 - 17:53

Hello 

Few days ago i used this workaround:

opkg install tzdata-europe
sed -i 's#Europe/Istanbul#Europe/Athens#'g /usr/share/enigma2/timezone.xml
init 4 && sync && init 3

Today i updated my receiver and sofia bulgaria is -2 hours off now. instead of 18:00 it shows 16:00.

it is displaying UTC.

Should I reverse the changes?



Re: timezone #33 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 1 November 2017 - 18:15

Sofia was changed from Istanbul to Athens, as per this discussion. See https://github.com/O...63290a4f5ee2199.

 

So you might need to select your timezone again. You can use this to double check your timezone:

ls -l /etc/localtime

it will tell you where it is mapped to, in my case

lrwxrwxrwx    1 root     root            33 Oct 30 12:50 /etc/localtime -> /usr/share/zoneinfo/Europe/Dublin

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #34 imperia

  • Senior Member
  • 140 posts

+2
Neutral

Posted 1 November 2017 - 18:42

root@et6x00:/usr/share/enigma2# date
Wed Nov  1 16:50:26 UTC 2017
root@et6x00:/usr/share/enigma2# ls -l /etc/localtime
lrwxrwxrwx    1 root     root            33 Nov  1 16:24 /etc/localtime -> /usr/share/zoneinfo/Europe/Athens
root@et6x00:/usr/share/enigma2#
 
looks correct

timezone.xml
<zone name="(GMT+02:00) Helsinki, Kyiv, Sofia" zone="Europe/Athens" />

and
tzdata-europe is installed.
 

Edited by imperia, 1 November 2017 - 18:44.


Re: timezone #35 imperia

  • Senior Member
  • 140 posts

+2
Neutral

Posted 1 November 2017 - 18:49

PS. There is not Athens in Europe folder but there is Sofia?



Re: timezone #36 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 1 November 2017 - 19:05

Europe/Athens should be there even without tzdata-europe, it was added here: https://github.com/O...6d5b92f683dbb75

 

On my 6.0-release box, it was installed without problems after the update of last weekend:

root@hd2400:~# ls -l /usr/share/zoneinfo/Europe/
-rw-r--r--    1 root     root          2271 Oct 29 23:23 Athens
-rw-r--r--    1 root     root          3559 Oct 29 23:23 Dublin
-rw-r--r--    1 root     root          2166 Oct 29 23:23 Istanbul
-rw-r--r--    1 root     root          1544 Oct 29 23:23 Moscow

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #37 imperia

  • Senior Member
  • 140 posts

+2
Neutral

Posted 1 November 2017 - 20:31

Tried pointing localtime to Sofia. after restart it is Athens again.

Removed tzdata-europe. There were 3 files only without Athens.

Installed tzdata. Version  0.1 was installed this time. 4 files in folder including Athens.

rebooted and now everything is fine.

 

thanks for your help.


Edited by imperia, 1 November 2017 - 20:32.


Re: timezone #38 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 1 November 2017 - 20:59

BTW why don't we make a meta-package that includes all timezone packages and have the image depend on that?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: timezone #39 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 1 November 2017 - 23:43

Originally it is a single package, tzdata. we have a bb-append that splits it into several packages, one for every group (asia, europe, etc). And we only install a small subset by default, probably only just about enough to cover all 24 timezones.

 

I can only assume that this was invented 6 or more years ago for boxes with a very small flash. On the other hand, there are still plenty of people that complain about samba being in the image, and that is only about 6Mb in size.

 

My idea was to convert the current xml by a treeview (like used for xmltv sources and plugins) so the user can select anyy timezone. Once selected, it checks if it is already installed, and if not, install the package that supplies it. This way we still don't have to install anything for the majority of the users, while still watching the space usage by only installing the required package.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: timezone #40 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 2 November 2017 - 12:31

What size are we talking about? If the difference is 10k or 100k then I'd say, don't bother, install all of it, revert the package split.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users