Fix off-by-one error in Windows epoch.
For the Windows DATE type, 1/1/1900 should be 2.0, not 1.0.
DATE is the number of dates since 12/30/1899.
Reviewed by Ada.
* MarshallingHelpers.cpp:
(MarshallingHelpers::windowsEpochAbsoluteTime):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27625
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-08 Steve Falkenburg <sfalken@apple.com>
+
+ <rdar://problem/5491463> Wrong dates shown in History menu.
+
+ Fix off-by-one error in Windows epoch.
+
+ For the Windows DATE type, 1/1/1900 should be 2.0, not 1.0.
+ DATE is the number of dates since 12/30/1899.
+
+ Reviewed by Ada.
+
+ * MarshallingHelpers.cpp:
+ (MarshallingHelpers::windowsEpochAbsoluteTime):
+
2007-11-08 Kevin McCullough <kmccullough@apple.com>
Reviewed by Sam.
{
static CFAbsoluteTime windowsEpochAbsoluteTime = 0;
if (!windowsEpochAbsoluteTime) {
- CFGregorianDate windowsEpochDate = {1899, 12, 31, 0, 0, 0.0};
+ CFGregorianDate windowsEpochDate = {1899, 12, 30, 0, 0, 0.0};
windowsEpochAbsoluteTime = CFGregorianDateGetAbsoluteTime(windowsEpochDate, 0) / secondsPerDay;
}
return windowsEpochAbsoluteTime;