Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

how to change the time format to 24 hour

battersbatters New
edited March 2011 in Vanilla 2.0 - 2.8
I can't change time from AM/PM time to 24 hours format time
I tried to add to your config.php file these lines for this
$Configuration['Garden']['DefaultDateFormat'] = 'j. F Y';
$Configuration['Garden']['DefaultDayFormat'] = 'j. F';
$Configuration['Garden']['DefaultYearFormat'] = 'F Y';
$Configuration['Garden']['DefaultTimeFormat'] = 'H:i';
but it does not affect the format of the time, what else would you change about it?


  • Options
    Don't know if this is what you are looking for.

    $Definition['Date.DefaultFormat'] = '%B %e, %Y';
    $Definition['Date.DefaultDayFormat'] = '%B %e';
    $Definition['Date.DefaultYearFormat'] = '%B %Y';
    $Definition['Date.DefaultTimeFormat'] = '%l:%M%p';
    on Vanilla
Sign In or Register to comment.