From dcd2c1677419d2a0ade5a00e22c6638b54fa8827 Mon Sep 17 00:00:00 2001 From: Steve Gilvarry Date: Mon, 27 Sep 2021 00:58:34 +1000 Subject: [PATCH] Define Date formats Set Locale for time to en_GB.utf8, changed STRF_FMT_DATETIME_SHORTER to %x which is locale aware short date, but does include year. Makes event table wider, not sure if that is a problem for others --- web/lang/en_gb.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/lang/en_gb.php b/web/lang/en_gb.php index 8427d5bc6..8b412cd39 100644 --- a/web/lang/en_gb.php +++ b/web/lang/en_gb.php @@ -69,6 +69,11 @@ // setlocale( LC_CTYPE, 'en_GB' ); Character class settings 4.3.0 and after // setlocale( LC_TIME, 'en_GB' ); Date and time formatting 4.3.0 and after +setlocale( LC_TIME, 'en_GB.utf8' ); +define("DATE_FMT_CONSOLE_LONG", "%a %d %b, %Hh%M"); +define( "STRF_FMT_DATETIME_SHORT", "%d/%m/%y %H:%M:%S" ); +define( "STRF_FMT_DATETIME_SHORTER", "%x %H:%M:%S" ); + // Simple String Replacements $SLANG = array( 'SystemLog' => 'System Log',