<rdar://problem/
3571960> washingtonpost.com claims I don't have cookies enabled and won't let me read articles
* kjs/date_object.cpp:
(timetUsingCF): Clamp time to LONG_MAX (getting rid of time_t
entirely would be even better, but is not required to fix this bug.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7280
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-08-16 Maciej Stachowiak <mjs@apple.com>
+
+ Code change by Eric Albert, reviewd by me.
+
+ <rdar://problem/3571960> washingtonpost.com claims I don't have cookies enabled and won't let me read articles
+
+ * kjs/date_object.cpp:
+ (timetUsingCF): Clamp time to LONG_MAX (getting rid of time_t
+ entirely would be even better, but is not required to fix this bug.
+
=== Safari-157 ===
2004-08-16 Richard Williamson <rjw@apple.com>
}
CFAbsoluteTime absoluteTime = CFGregorianDateGetAbsoluteTime(date, timeZone);
+ CFTimeInterval interval = absoluteTime + kCFAbsoluteTimeIntervalSince1970;
+ if (interval > LONG_MAX) {
+ interval = LONG_MAX;
+ }
- return (time_t)(absoluteTime + kCFAbsoluteTimeIntervalSince1970);
+ return (time_t) interval;
}
static time_t mktimeUsingCF(struct tm *tm)