Jump to content


Photo

Time change to 12h format (am/pm)


  • Please log in to reply
73 replies to this topic

#1 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 6 October 2020 - 19:42

Receiver: VuPlusZero4k, Openpli 7.3
Q: To all knowledgeable members and Openpli developers.
I am moving to North America. Need to change the receiver time to be 12h format (am/pm). Could not fined anything in the expert settings.
Please advice what files have to be changed, how to do it and if this is possible. Everything in the skin xml file was changed, but EPG is still 24h format.
Thanks to all.

Attached Files



Re: Time change to 12h format (am/pm) #2 littlesat

  • PLi® Core member
  • 57,159 posts

+698
Excellent

Posted 6 October 2020 - 19:49

The wierd thing is in enigma2 standard this is defined by the skin. I know eg OpenVix image has it that somehow overrules what is given by the skin. To do this correctly aswell skins and e2 (Python) code need a re-design.


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Time change to 12h format (am/pm) #3 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 6 October 2020 - 19:59

Can the e2 (Python) code be re-design? Or any workaround ;) ? Or replace a file from OpenVix to Openpli? I will need some tips how to do it.



Re: Time change to 12h format (am/pm) #4 WanWizard

  • PLi® Core member
  • 70,497 posts

+1,810
Excellent

Posted 6 October 2020 - 20:19

Don't you need an ATSC tuner for North America?


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: Time change to 12h format (am/pm) #5 WanWizard

  • PLi® Core member
  • 70,497 posts

+1,810
Excellent

Posted 6 October 2020 - 20:26

Can the e2 (Python) code be re-design? Or any workaround ;) ? Or replace a file from OpenVix to Openpli? I will need some tips how to do it.

 

Here you can see how a skin does it: https://github.com/l...plates.xml#L305

 

It uses "Format:%H:%M". You can check this page (https://docs.python....l#time.strftime) to see what the codes mean. From that it follows that you should change it to "Format:%I:%M %p".


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: Time change to 12h format (am/pm) #6 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 6 October 2020 - 21:04

All TV's in North America have ATSC tuners or you can by  USB one. And I have already changed all time parameters of the skin  the way you suggested. Look at the picture what is wrong. At the upper wright corner everything is correct, but  down left, the second box, time is still 24h. I don't thing I missed something. If you like I can attache the skin.xml. And thank you for the help.



Re: Time change to 12h format (am/pm) #7 WanWizard

  • PLi® Core member
  • 70,497 posts

+1,810
Excellent

Posted 6 October 2020 - 21:06

Can you be more specific? If I look at your attachment in the first post, I don;t see a time displayed in 24-hour format?


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: Time change to 12h format (am/pm) #8 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 6 October 2020 - 21:09

Yes but cannot attach new pictureI

Attached Files



Re: Time change to 12h format (am/pm) #9 WanWizard

  • PLi® Core member
  • 70,497 posts

+1,810
Excellent

Posted 6 October 2020 - 21:56

There is no limit to the number of attachments (there is to the maximum size though).

 

It is not our skin, so it's guessing where that comes from, but I assume a custom renderer that is installed with the skin, that uses some hardcoded format?


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: Time change to 12h format (am/pm) #10 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 6 October 2020 - 22:00

I'll be back online tomorrow.



Re: Time change to 12h format (am/pm) #11 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 6 October 2020 - 22:12

I will be back tomorrow with more details.



Re: Time change to 12h format (am/pm) #12 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 7 October 2020 - 08:46

This is the Skin I am playing with. I wouldn't mess around with the original Pli-FullNightHD, which is very nice Skin, light and fast. It will be nice if the Openpli developers add 12h (am/pm) format. My android phone, linux computer, ipad, my old, none Enigma2 STB, all of them have it.

Attached Files



Re: Time change to 12h format (am/pm) #13 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 9 October 2020 - 12:30

Not giving up! Edited GraphMultiEpg.py. Now the Multi Epg comes in12h format (am/pm, see ping image) Where  can I find the Single Epg to edit. It still comes in 24h format and is not in the skin. Any help will be appreciated. 

Attached Files



Re: Time change to 12h format (am/pm) #14 littlesat

  • PLi® Core member
  • 57,159 posts

+698
Excellent

Posted 9 October 2020 - 14:03

You see you need to change python code.... so it started to get kind of spaghetti code without a real design.... with a kind of format that can be configured....

Edited by littlesat, 9 October 2020 - 14:04.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Time change to 12h format (am/pm) #15 mrvica

  • Senior Member
  • 1,259 posts

+86
Good

Posted 9 October 2020 - 14:13

should be here

https://github.com/O...ents/EpgList.py

for simple, ,multi ans similar



Re: Time change to 12h format (am/pm) #16 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 9 October 2020 - 16:44

https://github.com/O...ents/EpgList.py does not tell me anywhere to change time to %I and %p.

It must be an easy solution like editing the GraphMultiEpg.py. The problem is I am not that knowledgeable to edit pyo files. That's why I am asking for help. Enigma2 STB's are multi voltage and have all world satellites programmed.



Re: Time change to 12h format (am/pm) #17 ccs

  • Senior Member
  • 229 posts

+7
Neutral

Posted 9 October 2020 - 16:48

OpenViX has an option to change between 12 and 24 hour format in the epg, maybe some clues there?


test


Re: Time change to 12h format (am/pm) #18 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 9 October 2020 - 17:52

Yes indeed, I tried it, but I didn't like it. Openpli is the best, as far as I am concern. Program guide  came in 24h format. strange!



Re: Time change to 12h format (am/pm) #19 littlesat

  • PLi® Core member
  • 57,159 posts

+698
Excellent

Posted 9 October 2020 - 17:55

In vix it is somehow a kind of hack as it have to overrule what a skin is indicating... What you need is a config for 12:24 hours.
Make it undepended from the skin or allow 12/24 hour config within the skin... (need also changes in skins!!!) it is not only in the epg etc to do this right...

Edited by littlesat, 9 October 2020 - 17:56.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Time change to 12h format (am/pm) #20 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 9 October 2020 - 18:48

When I installed Vix I put the 12h format, transferred my channels and put my skin, which is 12h (surprisingly it took it), but still EPG was 24h, Multi EPG was 12h. l plaid whit it a little bit, didn't like it and switched back to Openpli. I always back my system. It may be the EPG provider. Who knows? My problem is, I don't know how to create config for 12/24, I am not a programmer.




4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users