| Anonymous | Login | Signup for a new account | 10-24-2025 11:44 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0004094 | [Resin] | minor | always | 06-30-10 07:19 | 01-17-11 14:05 | ||||
| Reporter | nam | View Status | public | ||||||
| Assigned To | ferg | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 4.0.15 | Product Version | 4.0.7 | ||||
| Product Build | |||||||||
| Summary | 0004094: com.caucho.util.QDate.setMonth() sets wrong month | ||||||||
| Description |
Currently, QDate recalculates the _dayOfMonth after a setMonth() call. But if the old _dayOfMonth exceeds the number of days in the new _month, then _month is automatically incremented to become the intended month + 1. Steps: 1. create a new QDate for 2010-12-31 2. qDate.setMonth(1) // February 3. qDate.getMonth() // returns March Workaround: Call setMonth(11), then setDayOfMonth(), and finally setMonth(). However, it's natural to assume that order of the setter calls shouldn't affect the outcome (as evidenced in Resin's own use of QDate). |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |