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?

Comments

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

    /applications/dashboard/locale/en-ca/definitions.php
    $Definition['Date.DefaultFormat'] = '%B %e, %Y';
    $Definition['Date.DefaultDayFormat'] = '%B %e';
    $Definition['Date.DefaultYearFormat'] = '%B %Y';
    $Definition['Date.DefaultTimeFormat'] = '%l:%M%p';
    on Vanilla 2.0.17.8
Sign In or Register to comment.