Form block date/time field change from AM/PM to 24-hour format

Permalink
I tell you I've tried searching so much and I've found so many topics talking about changing certain definitions in config/site.php, but it didn't help.

Can anybody just give me a short and sweet answer how I can change the format of the date-time field of the form block to represent 24 hours instead of using AM / PM?

 
hutman replied on at Permalink Best Answer Reply
hutman
In your /config/site.php add this line and it will change your date to 24 hour format

define('DATE_FORM_HELPER_FORMAT_HOUR', 24);
Evert replied on at Permalink Reply
Awesome, thank you so much!
willabc replied on at Permalink Reply
Do you know how to do this for version 7 and 8? They got rid of site.php so I'm not sure how to do this now. I'm assuming it is an array option for concrete.php or app.php but I can't find any documentation on this.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.