mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Move to ISO 8601-compliant timestamps
https://en.wikipedia.org/w/index.php?title=ISO_8601&oldid=819129098
This commit is contained in:
parent
22080c840f
commit
9d9bfee53f
|
@ -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];
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue