Opened 9 years ago
Closed 7 years ago
#15424 closed defect (fixed)
dojox/date/timeZoneFormatting test failure
Reported by: | bill | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.10 |
Component: | Date | Version: | 1.7.2 |
Keywords: | dohfail | Cc: | Douglas Hays |
Blocked By: | Blocking: |
Description
Getting a spacing diff (tested on FF/mac) in the dojox/data/timeZoneFormatting test:
GROUP "dojox.date.tests.timezoneFormatting" has 1 test to run _AssertFailure: http://localhost/trunk/dojo/dojo.js:353 assertEqual() failed: expected 2006年8月11日金曜日9時55分12秒 JST but got 2006年8月11日金曜日 9時55分12秒 JST ERROR IN: (function (t) {var date = new Date(1155257712345);var selectorOpts = {datePattern: "EEEE, MMMM d, y 'at'", timePattern: "HH:mm:ss z", locale: "en-us"};doh.is("Friday, August 11, 2006 at 00:55:12 GMT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "GMT"})));doh.is("Thursday, August 10, 2006 at 18:55:12 MDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Denver"})));doh.is("Thursday, August 10, 2006 at 16:55:12 AKDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Anchorage"})));doh.is("Friday, August 11, 2006 at 03:55:12 IDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Asia/Jerusalem"})));doh.is("Friday, August 11, 2006 at 10:55:12 EST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Australia/Sydney"})));doh.is("Friday, August 11, 2006 at 09:55:12 JST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Asia/Tokyo"})));doh.is("Friday, August 11, 2006 at 08:55:12 CST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Asia/Shanghai"})));doh.is("Friday, August 11, 2006 at 02:55:12 CEST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Europe/Madrid"})));doh.is("Thursday, August 10, 2006 8:55:12 PM EDT", dojo.date.locale.format(date, {formatLength: "full", locale: "en-us", timezone: "America/New_York"}));doh.is("2006\u5E748\u670811\u65E5\u91D1\u66DC\u65E59\u664255\u520612\u79D2 JST", dojo.date.locale.format(date, {formatLength: "full", locale: "ja-jp", timezone: "Asia/Tokyo"}));doh.is("2006\u5E748\u670811\u65E5\u661F\u671F\u4E94CST\u4E0A\u53488\u65F655\u520612\u79D2", dojo.date.locale.format(date, {formatLength: "full", locale: "zh-cn", timezone: "Asia/Shanghai"}));doh.is("vendredi 11 ao\xFBt 2006 02:55:12 CEST", dojo.date.locale.format(date, {formatLength: "full", locale: "fr-fr", timezone: "Europe/Paris"}));doh.is("Freitag, 11. August 2006 02:55:12 CEST", dojo.date.locale.format(date, {formatLength: "full", locale: "de-at", timezone: "Europe/Vienna"}));doh.is("viernes 11 de agosto de 2006 02:55:12 CEST", dojo.date.locale.format(date, {formatLength: "full", locale: "es", timezone: "Europe/Madrid"}));date = new Date(1225605599000);selectorOpts = {formatLength: "full", locale: "en-us"};doh.is("Sunday, November 2, 2008 1:59:59 AM EDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/New_York"})));doh.is("Saturday, November 1, 2008 10:59:59 PM PDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Los_Angeles"})));date = new Date(1225605600000);doh.is("Sunday, November 2, 2008 1:00:00 AM EST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/New_York"})));doh.is("Saturday, November 1, 2008 11:00:00 PM PDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Los_Angeles"})));date = new Date(1225616400000);doh.is("Sunday, November 2, 2008 4:00:00 AM EST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/New_York"})));doh.is("Sunday, November 2, 2008 1:00:00 AM PST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Los_Angeles"})));date = new Date(1257062399000);doh.is("Sunday, November 1, 2009 1:59:59 AM MDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Denver"})));doh.is("Sunday, November 1, 2009 12:59:59 AM MST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Phoenix"})));date = new Date(1257062400000);doh.is("Sunday, November 1, 2009 1:00:00 AM MST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Denver"})));doh.is("Sunday, November 1, 2009 1:00:00 AM MST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Phoenix"})));}) FAILED test: timezone format 97 ms
Change History (13)
comment:1 Changed 9 years ago by
Keywords: | dohfail added |
---|
comment:2 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|---|
Status: | new → assigned |
comment:4 Changed 9 years ago by
Milestone: | 1.8 → tbd |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Fails somewhere else now:
GROUP "dojox.date.tests.timezoneFormatting" has 1 test to run _AssertFailure: file:///users/peller/dojo/dojo/dojo.js:353 assertEqual() failed: expected Saturday, November 1, 2008 11:00:00 PM PDT but got Sunday, November 2, 2008 12:00:00 AM PDT ERROR IN: (function (t) {var date = new Date(1155257712345);var selectorOpts = {datePattern: "EEEE, MMMM d, y 'at'", timePattern: "HH:mm:ss z", locale: "en-us"};doh.is("Friday, August 11, 2006 at 00:55:12 GMT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "GMT"})));doh.is("Thursday, August 10, 2006 at 18:55:12 MDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Denver"})));doh.is("Thursday, August 10, 2006 at 16:55:12 AKDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Anchorage"})));doh.is("Friday, August 11, 2006 at 03:55:12 IDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Asia/Jerusalem"})));doh.is("Friday, August 11, 2006 at 10:55:12 EST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Australia/Sydney"})));doh.is("Friday, August 11, 2006 at 09:55:12 JST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Asia/Tokyo"})));doh.is("Friday, August 11, 2006 at 08:55:12 CST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Asia/Shanghai"})));doh.is("Friday, August 11, 2006 at 02:55:12 CEST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "Europe/Madrid"})));doh.is("Thursday, August 10, 2006 8:55:12 PM EDT", dojo.date.locale.format(date, {formatLength: "full", locale: "en-us", timezone: "America/New_York"}));doh.is("2006\u5E748\u670811\u65E5\u91D1\u66DC\u65E5 9\u664255\u520612\u79D2 JST", dojo.date.locale.format(date, {formatLength: "full", locale: "ja-jp", timezone: "Asia/Tokyo"}));doh.is("2006\u5E748\u670811\u65E5\u661F\u671F\u4E94CST\u4E0A\u53488\u65F655\u520612\u79D2", dojo.date.locale.format(date, {formatLength: "full", locale: "zh-cn", timezone: "Asia/Shanghai"}));doh.is("vendredi 11 ao\xFBt 2006 02:55:12 CEST", dojo.date.locale.format(date, {formatLength: "full", locale: "fr-fr", timezone: "Europe/Paris"}));doh.is("Freitag, 11. August 2006 02:55:12 CEST", dojo.date.locale.format(date, {formatLength: "full", locale: "de-at", timezone: "Europe/Vienna"}));doh.is("viernes, 11 de agosto de 2006 02:55:12 CEST", dojo.date.locale.format(date, {formatLength: "full", locale: "es", timezone: "Europe/Madrid"}));date = new Date(1225605599000);selectorOpts = {formatLength: "full", locale: "en-us"};doh.is("Sunday, November 2, 2008 1:59:59 AM EDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/New_York"})));doh.is("Saturday, November 1, 2008 10:59:59 PM PDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Los_Angeles"})));date = new Date(1225605600000);doh.is("Sunday, November 2, 2008 1:00:00 AM EST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/New_York"})));doh.is("Saturday, November 1, 2008 11:00:00 PM PDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Los_Angeles"})));date = new Date(1225616400000);doh.is("Sunday, November 2, 2008 4:00:00 AM EST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/New_York"})));doh.is("Sunday, November 2, 2008 1:00:00 AM PST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Los_Angeles"})));date = new Date(1257062399000);doh.is("Sunday, November 1, 2009 1:59:59 AM MDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Denver"})));doh.is("Sunday, November 1, 2009 12:59:59 AM MST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Phoenix"})));date = new Date(1257062400000);doh.is("Sunday, November 1, 2009 1:00:00 AM MST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Denver"})));doh.is("Sunday, November 1, 2009 1:00:00 AM MST", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone: "America/Phoenix"})));}) FAILED test: timezone format 60 ms
comment:5 Changed 9 years ago by
date = new Date(1225605600000); // New York goes off DST - NY and LA are 2 hours apart selectorOpts = {formatLength: "full", locale: "en-us"}; doh.is("Saturday, November 1, 2008 11:00:00 PM PDT", dojo.date.locale.format(date, dojo.delegate(selectorOpts, {timezone:'America/Los_Angeles'})));
comment:7 Changed 8 years ago by
Milestone: | tbd → 1.9 |
---|
comment:11 Changed 8 years ago by
This test is still failing. I opened #16887 to track a specific failure in dojox/date.
comment:12 Changed 8 years ago by
Milestone: | 1.9 → 1.10 |
---|
Bumping this ticket since we are past the deadline for the 1.9RC. The fix can be put into 1.9.1 too, if desired.
comment:13 Changed 7 years ago by
Priority: | undecided → high |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
Per peller, this ticket is obsolete, as the only remaining issue has a separate ticket open (#16887)
Note: See
TracTickets for help on using
tickets.
Started in [28074].