Bug #32011 Date-picker skips next/prev if current month has 31 days and next/prev has less
Submitted: 31 Oct 2007 22:13 Modified: 26 Feb 2008 14:23
Reporter: Bill Weber Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Web Severity:S3 (Non-critical)
Version:2.0 OS:Any
Assigned to: Joshua Ganderson CPU Architecture:Any

[31 Oct 2007 22:13] Bill Weber
Description:
If the current month has 31 days and the current day is the 31st, when first using  the date-time picker it will skip the next month when pressing the "Next" arrow if the next month has less than 31 days. Also, it won't go to the previous month when the "Previous" arrow is pressed the first time, if the previous month has less than 31 days.

How to repeat:
- set current date to October 31st
- log into dashboard
- click on graph thumbnail on Monitor tab
- click on Configure tab of popup
- select From/To radio button
- click on date-time picker button (calendar)
- click once on either previous or next arrow (top)
| if next, should skip to December
| if prev, should do nothing
[3 Nov 2007 17:06] Sloan Childers
It is pretty embarrassing for a date picker to not work on the last day of the month.  We really should investigate using a standard date picker from an established javascript library instead of a roll-your-own.
[13 Nov 2007 17:44] Joshua Ganderson
patch sent - minor issue with firefox mishandling date object in boundary case of incrementing month when on 31st into a month with less days.
[14 Nov 2007 21:07] Sloan Childers
patch was not internationalized
[26 Nov 2007 20:55] Joshua Ganderson
Internationalization of month names is a separate issue - will open a separate bug for it. Original patch should be committed if it hasn't already.
[28 Nov 2007 1:30] Joshua Ganderson
R8339 - committed to 1.2.1

reopen for 2.0 after tested

Test
1. Set your computer to October 31st
2. Open a page with a date picker like the events page
3. Open the date picker and click the next button
4. Note that the current month is now November
5. Change locale to Japanese
6. Open the date picker
7. Note that it opens the date picker and the calendar renders correctly
[29 Nov 2007 0:00] Bill Weber
fixed in version 1.3.0.8371 - setting back to Verified until fixed in 2.0
[4 Feb 2008 19:30] Joshua Ganderson
r5924 - committed to 2.0. References overriding month and day name arrays that have not yet been created and will default to english. Will add localized date resources shortly, this was a separate bug.
[23 Feb 2008 2:02] Bill Weber
verified fixed in build 2.0.0.5948
[26 Feb 2008 14:23] Peter Lavin
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.
Added to the changelog for versions 1.3 and 2.