Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356362

Summary: [DateTime] Can't choose 30.09.2011
Product: [RT] RAP Reporter: Daria Huber <daria.spam>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 1.5 M2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Daria Huber CLA 2011-08-31 11:42:27 EDT
Build Identifier: 20110615-0604

I have a datetime widget with this style: SWT.BORDER | SWT.DATE | SWT.DROP_DOWN.
Sometimes is it possible to choose 30.09.2011 in drop down menu and sometimes not. If not then the widget shows 01.09.2011. 
Also i can't choose 30.09.2011 with a keypad. 
I have RAP Version 1.4.0.

Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2011-08-31 12:07:30 EDT
I can reproduce it wit Controls Demo (CVS HEAD) too.
Comment 2 Ivan Furnadjiev CLA 2011-08-31 12:38:41 EDT
Created attachment 202541 [details]
Patch
Comment 3 Ivan Furnadjiev CLA 2011-08-31 12:40:58 EDT
When probing the date in DateTimeDate#_getDaysInMonth() the tmpDate object was not reset correctly. Applied patch to CVS HEAD.
Comment 4 Ivan Furnadjiev CLA 2011-08-31 13:11:24 EDT
Comment on attachment 202541 [details]
Patch

Did some additional re-factoring in DateTimeDate.js#__getDaysInMonth().