Bug 485013 - jsdate.cpp AdjustTime() breaks London (GMT+0) dates when DST activates Mar 29 2009 Summary: jsdate.cpp AdjustTime() breaks London (GMT+0) dates when DST activates Mar 29. r=mrbkap

This commit is contained in:
Brian Crowder
2009-03-26 17:51:50 -07:00
parent d319873064
commit d379e905ed

View File

@@ -419,7 +419,7 @@ static jsdouble
AdjustTime(jsdouble date)
{
jsdouble t = DaylightSavingTA(date) + LocalTZA;
t = (LocalTZA > 0) ? fmod(t, msPerDay) : -fmod(msPerDay - t, msPerDay);
t = (LocalTZA >= 0) ? fmod(t, msPerDay) : -fmod(msPerDay - t, msPerDay);
return t;
}