Move to ISO 8601-compliant timestamps

https://en.wikipedia.org/w/index.php?title=ISO_8601&oldid=819129098
This commit is contained in:
heinrich5991 2018-01-11 15:55:32 +01:00
parent 22080c840f
commit 9d9bfee53f
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ void CTeeHistorian::WriteHeader(const CGameInfo *pGameInfo)
char aStartTime[128]; char aStartTime[128];
FormatUuid(pGameInfo->m_GameUuid, aGameUuid, sizeof(aGameUuid)); FormatUuid(pGameInfo->m_GameUuid, aGameUuid, sizeof(aGameUuid));
str_timestamp_ex(pGameInfo->m_StartTime, aStartTime, sizeof(aStartTime), "%Y-%m-%d %H:%M:%S %z"); str_timestamp_ex(pGameInfo->m_StartTime, aStartTime, sizeof(aStartTime), "%Y-%m-%dT%H:%M:%S%z");
char aCommentBuffer[128]; char aCommentBuffer[128];
char aServerVersionBuffer[128]; char aServerVersionBuffer[128];

View file

@ -84,7 +84,7 @@ protected:
static const char PREFIX3[] = "]}"; static const char PREFIX3[] = "]}";
char aTimeBuf[64]; char aTimeBuf[64];
str_timestamp_ex(m_GameInfo.m_StartTime, aTimeBuf, sizeof(aTimeBuf), "%Y-%m-%d %H:%M:%S %z"); str_timestamp_ex(m_GameInfo.m_StartTime, aTimeBuf, sizeof(aTimeBuf), "%Y-%m-%dT%H:%M:%S%z");
CPacker Buffer; CPacker Buffer;
Buffer.Reset(); Buffer.Reset();