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.

Change time format from 12 hours to 24 hours?

rkneschkerkneschke New
edited May 2012 in Vanilla 2.0 - 2.8

Hello,

right now Vanilla seems to use the 12 hour am/pm time system.

How could I change the times shown to the 24 hourse time system?

Best regards,
Robert

Tagged:

Best Answer

  • x00x00 MVP
    Answer ✓

    try putting in it in conf/locale.php

    grep is your friend.

Answers

  • set in your locale

    Date.DefaultTimeFormat to '%H:%M%p'

    grep is your friend.

  • Thanks for your reply.

    I did, I changed it from
    '%l:%M%p'
    to
    '%H:%M%p'
    but nothing seems to change.
    Is there a cache in Vanilla I might need to delete?

  • x00x00 MVP
    Answer ✓

    try putting in it in conf/locale.php

    grep is your friend.

  • Thanks, now it works...

Sign In or Register to comment.