diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-13 19:05:06 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:12 +0100 |
commit | 80112916fa974cd363b466ae5d479096ed8b8ffd (patch) | |
tree | 57758b3143e99bc81aebe0ad596789a2c41d3e78 | |
parent | ce729d1a78cc5c4c6d880e0f8489ad546acd3247 (diff) |
use standard time representation
-rw-r--r-- | src/game/g_admin.c | 4 | ||||
-rw-r--r-- | src/game/g_admin.h | 2 | ||||
-rw-r--r-- | src/game/g_main.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 6fca16a0..272dd363 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1469,8 +1469,8 @@ static void admin_create_ban( gentity_t *ent, Q_strncpyz( b->guid, guid, sizeof( b->guid ) ); memcpy( &b->ip, ip, sizeof( b->ip ) ); - Com_sprintf( b->made, sizeof( b->made ), "%02i/%02i/%02i %02i:%02i:%02i", - qt.tm_mon + 1, qt.tm_mday, qt.tm_year % 100, + Com_sprintf( b->made, sizeof( b->made ), "%04i-%02i-%02i %02i:%02i:%02i", + qt.tm_year+1900, qt.tm_mon+1, qt.tm_mday, qt.tm_hour, qt.tm_min, qt.tm_sec ); if( ent && ent->client->pers.admin ) diff --git a/src/game/g_admin.h b/src/game/g_admin.h index f95a0741..9971d450 100644 --- a/src/game/g_admin.h +++ b/src/game/g_admin.h @@ -124,7 +124,7 @@ typedef struct g_admin_ban char guid[ 33 ]; addr_t ip; char reason[ MAX_ADMIN_BAN_REASON ]; - char made[ 18 ]; // big enough for strftime() %c + char made[ 20 ]; // "YYYY-MM-DD hh:mm:ss" int expires; char banner[ MAX_NAME_LENGTH ]; int warnCount; diff --git a/src/game/g_main.c b/src/game/g_main.c index c8e0af41..52e59ddd 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -578,7 +578,7 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) G_LogPrintf( "InitGame: %s\n", serverinfo ); trap_RealTime( &qt ); - G_LogPrintf("RealTime: %04i/%02i/%02i %02i:%02i:%02i\n", + G_LogPrintf("RealTime: %04i-%02i-%02i %02i:%02i:%02i\n", qt.tm_year+1900, qt.tm_mon+1, qt.tm_mday, qt.tm_hour, qt.tm_min, qt.tm_sec ); |