Actions
Defect #12359
closedVersion date field regex validation accepts invalid date
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Version date field regexp validation accepts invalid dates like "2012-11-33". Stored value is nil and no validation errors.
I attached a proposed patch that fixes this bug.
Files
Related issues
Updated by Etienne Massip about 12 years ago
- Category set to Custom fields
Why not try User.current.time_zone.parse(effective_date_before_type_cast)
?
Updated by Etienne Massip about 12 years ago
- Category changed from Custom fields to Roadmap
Updated by Róbert Ágoston about 12 years ago
Etienne Massip wrote:
Why not try
User.current.time_zone.parse(effective_date_before_type_cast)
?
I just read that "Redmine only supports YYYY-MM-DD format for entering dates".
I read that at #10560#note-2
A similar bug was fixed in r7779 with the same method.
Updated by Jean-Philippe Lang about 12 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.1.3
- Resolution set to Fixed
Fix committed in r10810 with slight changes, thanks.
Updated by Jean-Philippe Lang about 12 years ago
- Status changed from Resolved to Closed
Merged in 2.1-stable.
Actions