- use international date format for all places that print a date.

The most important one is the autosave tagging. This was done because the old printout was missing the year and printed the month as a 3 character English string, sabotaging any attempt to sort the autosaves by anything meaningful.
This commit is contained in:
Christoph Oelckers 2019-03-11 21:21:37 +01:00
commit 8b4690bc44
3 changed files with 8 additions and 11 deletions

View file

@ -2054,7 +2054,7 @@ void G_DoAutoSave ()
}
readableTime = myasctime ();
description.Format("Autosave %.12s", readableTime + 4);
description.Format("Autosave %s", readableTime);
G_DoSaveGame (false, file, description);
}
@ -2077,14 +2077,9 @@ static void PutSaveWads (FSerializer &arc)
static void PutSaveComment (FSerializer &arc)
{
const char *readableTime;
int levelTime;
// Get the current date and time
readableTime = myasctime ();
FString comment;
comment.Format("%.10s%.5s%.9s", readableTime, &readableTime[19], &readableTime[10]);
FString comment = myasctime();
arc.AddString("Creation Time", comment);