| Summary: | [DateTime] method getDay() return wrong day in particular circumstances | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | marco <c1028681> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daria.spam, m.kempe | ||||
| Version: | 1.3 | ||||||
| Target Milestone: | 1.4 M1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | sr132 | ||||||
| Attachments: |
|
||||||
|
Description
marco
It always happens, when you choose a "day", that has not existed in the month you are "coming from". "Always" applies to: when you type the digits directly into the widget. Initial date: "xx.02.2010" Target date: "30.01.2010" or "31.03.2010" or "29.04.2010" and so on Exact steps: Just click the month-digits and type "01" for january, then click the day-digits and type "30" or "030" for the 30. of january. The date is correctly displayed, but wrong returned via getDay() from the control. The problem was in DateTimeDateLCA where the new date was set field by field in readData(). Fixed in CVS HEAD. JUnit test added. *** Bug 335948 has been marked as a duplicate of this bug. *** Created attachment 188040 [details]
Patch against v13_Maintenance
*** Bug 335948 has been marked as a duplicate of this bug. *** Comment on attachment 188040 [details]
Patch against v13_Maintenance
I consider this patch safe to go even into 1.3.2 RC3. The bug causes data inconsistencies and the fix involves no risk.
Applied patch to v13_Maintenance branch after discussion with RĂ¼diger. |