Jump to content
TNG Community
Jan Bastiaanssen

how to change the 12h clock into 24h clock

Recommended Posts

Jan Bastiaanssen

how can i change the 12h clock into a 24h clock used inside TNG.

Jan

Screenshot_1.jpg

 

Share this post


Link to post
Share on other sites
Michel KIRSCH
30 minutes ago, Jan Bastiaanssen said:

how can i change the 12h clock into a 24h clock

Jan, only for the server time you are showing :

edit your admin_genconfig.php file (root folder)

search for echo $admtext['time_offset'] (~ line 1220)

search for  : date("D h:i a") and replace with date("D H:i a")  you must do it twice (server time and local time) on the same line

Michel

Share this post


Link to post
Share on other sites
Michel KIRSCH

Sorry : replace with date("D H:i") : the am/pm mention becomes useless...

Michel

Share this post


Link to post
Share on other sites
Michel KIRSCH

To do the same for the admin_utilities.php form (Admin/Utilities/time stamp for backups files),

search for   $filemodtime = date("F j, Y h:i:s A", $filemod);

and change it with  $filemodtime = date("F j, Y H:i:s", $filemod);

Don't see another date/time in TNG pages...

Michel
 

 

Share this post


Link to post
Share on other sites
Jan Bastiaanssen

This works fine !

Thanks a lot Michel

Jan

Share this post


Link to post
Share on other sites
Michel KIRSCH

Jan,

if you found any other place where the change is needed, say it.

It is possible to make a little Mod with an option in the setup/misc page.

Michel

Share this post


Link to post
Share on other sites
Jan Bastiaanssen

Michel,

I did not have time yet to look for any other possible places.

A little Mod with an option in the setup/misc page should be very nice, but that is far above my programming skills.

Thank you very much

Jan

Share this post


Link to post
Share on other sites
Michel KIRSCH

Mod is quasi already written. I'm just waiting if there are another places in TNG concerned with the 12/24 change...

If you found so a page, just say it.

Michel

 

Share this post


Link to post
Share on other sites
Jan Bastiaanssen

Untill now not found other pages yet.

Jan

Share this post


Link to post
Share on other sites
Michel KIRSCH

Jan,

this is the Mod. There is no option : if installed, displays hours in 24 format. If not installed, displays default (12 hr format)

More simple.

Copy it into your mods directory. If it shows as installed : OK

if not, remove your manual modifications then install the Mod.

Michel

24_hour_format_v13.0.2.1.cfg

Share this post


Link to post
Share on other sites
Jan Bastiaanssen

Michel,

It works like a charm.

Thank you very much.

Jan

Share this post


Link to post
Share on other sites
Michel KIRSCH

You're welcome Jan !

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×