Jan Bastiaanssen Posted February 10, 2021 Report Share Posted February 10, 2021 how can i change the 12h clock into a 24h clock used inside TNG. Jan Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 10, 2021 Report Share Posted February 10, 2021 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 Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 10, 2021 Report Share Posted February 10, 2021 Sorry : replace with date("D H:i") : the am/pm mention becomes useless... Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 10, 2021 Report Share Posted February 10, 2021 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 Quote Link to comment Share on other sites More sharing options...
Jan Bastiaanssen Posted February 11, 2021 Author Report Share Posted February 11, 2021 This works fine ! Thanks a lot Michel Jan Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 11, 2021 Report Share Posted February 11, 2021 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 Quote Link to comment Share on other sites More sharing options...
Jan Bastiaanssen Posted February 11, 2021 Author Report Share Posted February 11, 2021 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 Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 11, 2021 Report Share Posted February 11, 2021 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 Quote Link to comment Share on other sites More sharing options...
Jan Bastiaanssen Posted February 11, 2021 Author Report Share Posted February 11, 2021 Untill now not found other pages yet. Jan Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 12, 2021 Report Share Posted February 12, 2021 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 Quote Link to comment Share on other sites More sharing options...
Jan Bastiaanssen Posted February 12, 2021 Author Report Share Posted February 12, 2021 Michel, It works like a charm. Thank you very much. Jan Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 13, 2021 Report Share Posted February 13, 2021 You're welcome Jan ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.