diff --git a/config/menus_settings.cfg b/config/menus_settings.cfg index 24de1e30..944ca44a 100644 --- a/config/menus_settings.cfg +++ b/config/menus_settings.cfg @@ -503,7 +503,7 @@ menuitem [Reset to default scoreboard...] [ loop rsl (listlen $DEFAULT_SCOREBOAR menuitem [Close] [ closecurmenu ] alias wallclockformat "" // strftime formatting -alias wallclockformatlist ["" %H:%M %H:%M:%S %I:%M%P %I:%M:%S%P U%H:%M U%H:%M:%S] //"U" at beginning means UTC/GMT time +alias wallclockformatlist ["" %H:%M %H:%M:%S %I:%M%p %I:%M:%S%p U%H:%M U%H:%M:%S] //"U" at beginning means UTC/GMT time newmenu HUD diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index c3cdbb25..8bdb2b36 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -841,7 +841,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat const char *ltimeformat = getalias("wallclockformat"); bool wallclock = ltimeformat && *ltimeformat; //wallclockformat beginning with "U" shows UTC/GMT time - if(wallclock) formatstring(ltime)("%s", timestring(*ltimeformat != 'U', ltimeformat + int(*ltimeformat == 'U'))); + if(wallclock) filtertext(ltime, timestring(*ltimeformat != 'U', ltimeformat + int(*ltimeformat == 'U')), FTXT_TOLOWER); if(showstats) {