Timeformat in European (24 hours)

Permalink
Hi How can I get the timeformat to run in 24 hour
on ver. 5.5.1

REGARDS
flemming

 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
You can change the default format settings by adding some defines in in config/site.php

Below are the settings I usually use:

//http://www.concrete5.org/community/forums/internationalization/emai...
define ('APP_TIMEZONE', 'Europe/London');
define ('DATE_DEFAULT_TIMEZONE_SET', 'Europe/London');
//http://www.concrete5.org/community/forums/customizing_c5/non-us-dat...
//http://www.concrete5.org/index.php?cID=146425&editmode=...
//http://www.concrete5.org/community/forums/chat/date-format/#70205...
define('DATE_APP_GENERIC_MDY', 'j-m-Y');
define('DATE_APP_GENERIC_MDY_FULL', 'd F Y');
define('DATE_APP_GENERIC_MDYT', 'j-m-Y \a\t H:i');
define('DATE_APP_GENERIC_MDYT_FULL', 'd F Y \a\t H:i');
define('DATE_APP_GENERIC_T', 'H:i');
define('DATE_APP_GENERIC_TS', 'H:i:s');
define('DATE_APP_DATE_PICKER', 'dd-mm-yy');
// Set time to 24 hour format
define('DATE_FORM_HELPER_FORMAT_HOUR', '24');


Most of C5 and addons use these constants for date-time formatting, but occasionally I come across lapses where date-time format strings are hard coded to US formats, so I would say the above works 99% of the time.