Jump to content
TNG Community

how to change the 12h clock into 24h clock


Jan Bastiaanssen

Recommended Posts

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

Link to comment
Share on other sites

Michel KIRSCH

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

Michel

Link to comment
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
 

 

Link to comment
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

Link to comment
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

Link to comment
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

 

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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.

×
×
  • Create New...