Jump to content


Photo

Time change to 12h format (am/pm)


  • Please log in to reply
73 replies to this topic

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

  • PLi® Core member
  • 70,939 posts

+1,835
Excellent

Posted 16 October 2020 - 15:59

I gave an example. And yes, you need someone with programmer skills to make these changes.

 

As you have discovered, you can't change it in the skin.


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) #62 Dimitrij

  • PLi® Core member
  • 10,382 posts

+354
Excellent

Posted 16 October 2020 - 16:23

Skins use ClockToText.py


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


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

  • PLi® Core member
  • 57,472 posts

+708
Excellent

Posted 16 October 2020 - 16:58

Exactly wanwizard that is how it should be done and why I did years ago not adapt to the oe-a solution.

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) #64 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 18 October 2020 - 09:52

 If I find someone with programmer skills to make changes to ClockToText.pyo, is this permitted by the rules? I guess Openpli is opensource. By the way .pyo files need special software to be open and than be converted again to .pyo. Almost all files in: usr/lib/enigma2/python are .pyo files.



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

  • Senior Member
  • 229 posts

+7
Neutral

Posted 18 October 2020 - 10:02

You need to find the latest PLi source of ClockToText.pyo (it's called ClockToText.py) on Github.

 

Edit it using notepad++ and then put it in the same directory as ClockToText.pyo

 

Rename ClockToText.pyo to ClockToText.pyo.orig, and reboot the gui. ClockToText.py will be re-compiled and ClockToText.pyo will be created if there are no errors.

 

If it fails to compile you can put the original back in place.

 

Maybe not quite as simple as that if the errors cause, say, a boot-loop.

 


test


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

  • Senior Member
  • 49 posts

+1
Neutral

Posted 18 October 2020 - 10:20

Thanks, very useful advice. I'll try it but I may need some help. I use Linux computer and notepadqq.



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

  • Senior Member
  • 49 posts

+1
Neutral

Posted 18 October 2020 - 10:40

Nothing on "github.com" search results: 

       We couldn’t find any repositories matching 'org:github ClockToText.py'

You could search all of GitHub or try an advanced search.    



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

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 18 October 2020 - 11:54

https://github.com/O.../ClockToText.py
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

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

  • PLi® Core member
  • 70,939 posts

+1,835
Excellent

Posted 18 October 2020 - 12:32

Or on the box:

opkg install enigma2-src

Please note that we only accept PR's on the current develop code.


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) #70 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 18 October 2020 - 12:40

Installed "opkg install enigma2-src" with the terminal, what does it do? Sorry I am not a pro.



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

  • PLi® Core member
  • 70,939 posts

+1,835
Excellent

Posted 18 October 2020 - 13:14

It installs the source code on the box, so you have the "py" files there. This is needed if you want to test code changes (don't forget to restart enigma if you change code, as code is cached).


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) #72 littlesat

  • PLi® Core member
  • 57,472 posts

+708
Excellent

Posted 18 October 2020 - 13:38

It is not only that py file that need to be adjusted....

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) #73 deezee6

  • Senior Member
  • 49 posts

+1
Neutral

Posted 18 October 2020 - 14:00

Grate "enigma2-src" No converter needed. Thanks



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

  • Senior Member
  • 49 posts

+1
Neutral

Posted 21 October 2020 - 11:07

Attached File  Channel selection.png   705.45KB   1 downloadsAttached File  MultiEPG.png   396.63KB   1 downloadsUpdate:
After editing numerous “pyo” files in “usr/lib/enigma2/python” :
The first page of Multi EPG shows correct am/pm time.
My modified Skin generates the correct am/pm time too.
The rest remains in 24h format like “Add Timer and single EPG. This is due to missing EPG configuration files in Openpli; Vix have them, (correct me if I am wrong).  The developers of Openpli can create them if there is a demand, it’s always good to have a choice. We have to wait. 
And if you play with your satellite receiver, always make a full backup, very important. I have backups with the original 24h format and with the modifications I made.
Thanks to all of you that tried to help me.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users