Ticket #974 (closed defect: fixed)
Opened 8 years ago
Last modified 6 years ago
Edit milestone date field incorrectly documented as requiring 2 digit year
| Reported by: | div@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.8.1 |
| Component: | roadmap | Version: | 0.8 |
| Severity: | minor | Keywords: | date milestone |
| Cc: | manuzhai@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
Date field says: Format: MM/DD/YY
but this gives:
Invalid Date Format
12/24/04 is not a known date format.
4-digit year is accepted. Suggest change the format hint string.
Attachments
Change History
comment:1 Changed 8 years ago by cmlenz
- Component changed from general to roadmap
- Owner changed from jonas to cmlenz
- Status changed from new to assigned
comment:2 Changed 8 years ago by cmlenz
- Milestone set to 0.8.1
comment:3 Changed 7 years ago by Claude
I have a similar problem but nothing will work. It does not accept any of
- 01/31/05
- 01/31/2005
- 31/01/05
- 31/01/2005
Which locale are you asking about? The client computer, the browser, the server, or another one I do not know about?
comment:4 Changed 7 years ago by Manuzhai
He's probably talking about the locale referenced in TracFaq, question 1.8.
For me, 'Jan 25, 2005' worked.
comment:5 Changed 7 years ago by Claude
Ok, that was it. 2004-01-31 worked for me. I did not figure out where this setting is nor where Trac pics up the format it suggests to use.
comment:6 Changed 7 years ago by anonymous
- Cc manuzhai@… added
comment:7 Changed 7 years ago by cmlenz
The format suggested by the form is hard-coded, which is obviously wrong (well, it's obvious now…)
We should instead somehow generate the hint taking the server locale into account.
comment:8 Changed 7 years ago by Manuzhai
Well, I'm not sure this whole locale thing is the best way to go forward.
It would be much more straightforward if there was like a simple config setting. Especially since Trac isn't really multi-language anyway, so it wouldn't make sense to have these language-specific date thingies. You'd still want some customization (for the stupid Americans with their mm/dd thingie), but maybe not too much.
comment:9 Changed 7 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed



What locale are you using?