diff options
author | Jay Merrifield <fracmak@gmail.com> | 2011-05-14 18:20:06 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-16 07:52:01 -0400 |
commit | 41205cef4b23749592c832605452af6575970623 (patch) | |
tree | 1c2989fd3372ed7be4d47e6285f45e9ace8c7509 /tests/unit | |
parent | 463849e4c35c64634f8f6d6dc876ef6774165542 (diff) | |
download | jquery-ui-41205cef4b23749592c832605452af6575970623.tar.gz jquery-ui-41205cef4b23749592c832605452af6575970623.zip |
Datepicker: Made the day of year calculator be more accurate. Fixes #6827 - Datepicker: Incorrect value for "oo" during Daylight Saving Time.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/datepicker/datepicker_tickets.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/datepicker/datepicker_tickets.js b/tests/unit/datepicker/datepicker_tickets.js index 7e6dc5f00..2b9ce05de 100644 --- a/tests/unit/datepicker/datepicker_tickets.js +++ b/tests/unit/datepicker/datepicker_tickets.js @@ -24,4 +24,9 @@ test('beforeShowDay-getDate', function() { inp.datepicker('hide'); }); +test('Ticket 6827: formatDate day of year calculation is wrong during day lights savings time', function(){ + var time = $.datepicker.formatDate("oo", new Date("2010/03/30 12:00:00 CDT")); + equals(time, "089"); +}); + })(jQuery); |