|Summary:||date-big-setdate.html testcase fails if the timezone isn't UTC-8|
|Product:||WebKit||Reporter:||Anders Carlsson <andersca>|
|OS:||OS X 10.4|
Description Anders Carlsson 2005-08-07 13:56:00 PDT
Since the date-big-setdate.html test case prints out the times, and since -expected.txt contains "UTC-8", it will fail if the timezone is different. Also, setDate sets different dates depending on the time zone. With UTC+1, setDate(120) sets the date to Thu Apr 30 1970 01:00:00 GMT+0100 With UTC-8, setDate(120) sets the date to Mon Mar 30 1970 16:00:00 GMT-0800 (Both Mozilla and Opera does the same thing, so this isn't a bug)
Comment 1 Anders Carlsson 2005-08-07 14:01:48 PDT
Created attachment 3268 [details] Determine if the dates are sequential This patch compares two following dates to see if they're sequential instead of printing out the dates.
Comment 2 Darin Adler 2005-08-07 18:00:54 PDT
Comment on attachment 3268 [details] Determine if the dates are sequential Looks to me like this has some && where it should have || in the success check. No? Also, should get rid of the unneeded "if (!validVars)".
Comment 3 Anders Carlsson 2005-08-08 00:18:28 PDT
Created attachment 3273 [details] Better test Turns out the test case was really broken. Here's a much simpler one that should work better
Comment 4 Justin Garcia 2005-08-09 14:45:32 PDT