r=mkaply, sr=blizzard
OS/2 only - subtract 1980 from date before using it


git-svn-id: svn://10.0.0.236/trunk@131543 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2002-10-09 02:37:48 +00:00
parent 3ce4ef969c
commit d85a459543

View File

@@ -1345,7 +1345,11 @@ nsLocalFile::SetModDate(PRInt64 aLastModifiedTime, PRBool resolveTerminal)
// PR_ExplodeTime expects usecs...
PR_ExplodeTime(aLastModifiedTime * PR_USEC_PER_MSEC, PR_LocalTimeParameters, &pret);
pathInfo.fdateLastWrite.year = pret.tm_year;
/* fdateLastWrite.year is based off of 1980 */
if (pret.tm_year >= 1980)
pathInfo.fdateLastWrite.year = pret.tm_year-1980;
else
pathInfo.fdateLastWrite.year = pret.tm_year;
pathInfo.fdateLastWrite.month = pret.tm_month + 1; // Convert start offset -- Win32: Jan=1; NSPR: Jan=0
// ???? OS2TODO st.wDayOfWeek = pret.tm_wday;
pathInfo.fdateLastWrite.day = pret.tm_mday;