Skip to content

Commit

Permalink
Define Date formats
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SteveGilvarry authored Sep 26, 2021
1 parent 94c1b34 commit dcd2c16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/lang/en_gb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit dcd2c16

Please sign in to comment.