Jan Bastiaanssen 0 Report post Posted February 10 how can i change the 12h clock into a 24h clock used inside TNG. Jan Quote Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted February 10 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 Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted February 10 Sorry : replace with date("D H:i") : the am/pm mention becomes useless... Michel Quote Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted February 10 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 Share this post Link to post Share on other sites
Jan Bastiaanssen 0 Report post Posted February 11 This works fine ! Thanks a lot Michel Jan Quote Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted February 11 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 Share this post Link to post Share on other sites
Jan Bastiaanssen 0 Report post Posted February 11 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 Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted February 11 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 Share this post Link to post Share on other sites
Jan Bastiaanssen 0 Report post Posted February 11 Untill now not found other pages yet. Jan Quote Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted February 12 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 Share this post Link to post Share on other sites
Jan Bastiaanssen 0 Report post Posted February 12 Michel, It works like a charm. Thank you very much. Jan Quote Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted February 13 You're welcome Jan ! Quote Share this post Link to post Share on other sites