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:
@ -786,7 +786,7 @@ bool plStatusLog::IPrintLineToFile( const char *line, UInt32 count )
|
||||
}
|
||||
if ( fFlags & kTimeInSeconds )
|
||||
{
|
||||
StrPrintf(work, arrsize(work), "(%u) ", plUnifiedTime(kNow).GetSecs());
|
||||
StrPrintf(work, arrsize(work), "(%lu) ", (unsigned long)plUnifiedTime(kNow).GetSecs());
|
||||
StrPack(buf, work, arrsize(buf));
|
||||
}
|
||||
if ( fFlags & kTimeAsDouble )
|
||||
|
Reference in New Issue
Block a user