Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356362 - [DateTime] Can't choose 30.09.2011
Summary: [DateTime] Can't choose 30.09.2011
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 11:42 EDT by Daria Huber CLA
Modified: 2011-08-31 13:11 EDT (History)
0 users

See Also:


Attachments
Patch (2.19 KB, patch)
2011-08-31 12:38 EDT, Ivan Furnadjiev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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().