2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Change the fSecs field of plUnifiedTime from UInt32 to time_t.

This fixes various date formatting problems when building on a system where time_t is 64-bit (e.g. Visual Studio 2010), and, as a bonus, extends the range past 2038 on such systems.

The wire protocol is left at 32-bit for now, we might change that to 64 when other reasons to break compatibility have accumulated.
This commit is contained in:
Christian Walther
2011-06-18 20:45:17 +02:00
parent 569f6aa101
commit 9adb8efd5d
9 changed files with 45 additions and 51 deletions

View File

@ -338,7 +338,7 @@ void plAgeDescription::Write(hsStream* stream) const
char buf[256];
// Write the date/time
sprintf(buf, "StartDateTime=%010u\n", fStart.GetSecs());
sprintf(buf, "StartDateTime=%010lu\n", (unsigned long)fStart.GetSecs());
stream->WriteString(buf);
// Write the day length