Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

How to change from AM/PM to 24-hour?

edited July 2011 in Vanilla 2.0 - 2.8
I am having a hard time trying to make the forum display 24-hour clock instead of AM/PM, so if anybody could enlighten me I would be forever grateful!

- Cheers!


  • Found the answer:

    quoting the one who had the answer on these forums:
    @Todd i have tried your solution but it does not work. Here is how i got it to work:

    Go the root of your forum folders -> open 'conf' -> open 'locale.php' -> the file needs to look like this:
    <?php if (!defined('APPLICATION')) exit();
    $Definition['Date.DefaultTimeFormat'] = '%H:%M';
    $Definition['Date.DefaultDayFormat'] = '%e. %B';
  • lucluc ✭✭
    edited July 2011
    Answer found by OP. (so you can select this and a nice blue Answered next to the discussion :) )
  • Thank you...

Sign In or Register to comment.