Opened 12 years ago

Closed 12 years ago

#3374 closed defect (duplicate)

0.9: Date stamp tests fail on IE 6 and IE 7

Reported by: Jared Jurkiewicz Owned by: Adam Peller
Priority: high Milestone: 0.9beta
Component: Date Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

While testing other fixes, I discovered date is failing again on IE 6 and IE 7 in one of the UT.

GROUP "tests.date.stamp" has 2 tests to run _AssertFailure: [object Error]: assertEqual() failed: expected |29| but got |28| [object Error] ERROR IN: function test_date_iso(t){ var rfc = "2005-06-29T08:05:00-07:00"; var date = dojo.date.stamp.fromISOString(rfc); t.is(2005,date.getFullYear()); t.is(5,date.getMonth()); t.is(29,date.getDate()); t.is(15,date.getUTCHours()); t.is(5,date.getMinutes()); t.is(0,date.getSeconds()); rfc = "2004-02-29"; date = dojo.date.stamp.fromISOString(rfc); t.is(2004,date.getFullYear()); t.is(1,date.getMonth()); t.is(29,date.getDate()); date = new Date(2005,5,29,8,5,0); rfc = dojo.date.stamp.toISOString(date); truncate for comparison t.is("2005-06",rfc.substring(0,7)); date = dojo.date.stamp.fromISOString("T18:46:39"); t.is(18, date.getHours()); t.is(46, date.getMinutes()); t.is(39, date.getSeconds()); } FAILED test: test_date_iso PASSED test: test_date_iso_tz

Change History (1)

comment:1 Changed 12 years ago by Adam Peller

Resolution: duplicate
Status: newclosed

oops. I opened another ticket on this. See #3386

Note: See TracTickets for help on using tickets.