summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-13 19:05:15 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:12 +0100
commit02b95e3bc75c48849dcfc34e32cca028ee09a3b7 (patch)
treefb094f3b862e78cda768b3652942651405f1d0c2
parent80112916fa974cd363b466ae5d479096ed8b8ffd (diff)
use more standard date notations
-rw-r--r--src/ui/ui_main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 47be810e..97c5074a 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -33,14 +33,6 @@ USER INTERFACE MAIN
uiInfo_t uiInfo;
-static const char *MonthAbbrev[ ] =
-{
- "Jan", "Feb", "Mar",
- "Apr", "May", "Jun",
- "Jul", "Aug", "Sep",
- "Oct", "Nov", "Dec"
-};
-
static const char *netSources[ ] =
{
"Internet",
@@ -1087,8 +1079,9 @@ static void UI_StartServerRefresh( qboolean full )
trap_Cvar_Set( va( "ui_lastServerRefresh_%i_time", ui_netSource.integer ),
va( "%i", time ) );
trap_Cvar_Set( va( "ui_lastServerRefresh_%i", ui_netSource.integer ),
- va( "%s-%i, %i at %i:%02i", MonthAbbrev[q.tm_mon],
- q.tm_mday, 1900 + q.tm_year, q.tm_hour, q.tm_min ) );
+ va( "%04i-%02i-%02i %02i:%02i:%02i",
+ q.tm_year+1900, q.tm_mon+1, q.tm_mday,
+ q.tm_hour, q.tm_min, q.tm_sec ) );
if( !full )
{