#3680 closed enhancement (fixed)
Include an example Date Format on WebAdmin Plugin pages. Such as "mm/dd/yyyy".
Reported by: | MattScilipoti | Owned by: | Matthew Good |
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | admin/web | Version: | 0.10b1 |
Severity: | minor | Keywords: | |
Cc: | matts@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Include an example Date Format on WebAdmin Plugin pages. Such as "mm/dd/yyyy".
Required on:
- Add Milestone (for Due).
- Add Version (for Time).
Attachments (1)
Change History (11)
comment:1 by , 18 years ago
by , 18 years ago
Attachment: | TracWebAdminDateFormat.patch added |
---|
Displays required Date format in WebAdmin Plugin.
comment:2 by , 18 years ago
Cc: | added |
---|
I included a patch. Please verify these are the correct formats. I am reasonably certain of Milestone, guessing at Time format.
comment:3 by , 18 years ago
Component: | trac-admin → webadmin |
---|---|
Owner: | changed from | to
comment:4 by , 18 years ago
Cc: | added; removed |
---|
comment:6 by , 18 years ago
Replying to anonymous:
The date format for Add Milestone is "mmm dd,yyyy".
Trac's date format is based on your locale, so if that's the format you see it's because it should be the appropriate one based on your system's language settings.
follow-up: 8 comment:7 by , 18 years ago
It does not appear to be using my OS's (WinXP) locale settings.
My Regional Options indicate these formats:
Name | Sample | Indicating that the Format is |
Short Date | 9/12/2006 | m/dd/yyyy |
Long Date | Tuesday, September 12, 2006 | dddd, mmmm dd,yyyy |
But WebAdmin gives me the above listed parse_date error when using these formats.
It does not error if I use mmm dd, yyyy
(ie. Sep 12, 2006).
comment:8 by , 18 years ago
Replying to Matt Scilipoti:
It does not appear to be using my OS's (WinXP) locale settings.
…snip…
But WebAdmin gives me the above listed parse_date error when using these formats.
It does not error if I use
mmm dd, yyyy
(ie. Sep 12, 2006).
Sorry, I didn't mean to pull this ticket off topic. If you have more questions about the date formatting please ask on the MailingList. Trac actually tries a few formats using the locale-based date formats, and as a last resort falls back on '%b %d, %Y'
which would match the "Sep 12, 2006" format. You should be able to see the expected date format when editing a milestone from the Roadmap.
comment:9 by , 18 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:10 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Ok, a format hint has been added in r3727.
If you enter an invalid date format you receive this error: