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. (cherry picked from commit 9adb8efd5d
)
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:
committed by
rarified
parent
68bbea08a1
commit
a117e47b5e
@ -354,7 +354,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
|
||||
|
Reference in New Issue
Block a user