Modify ↓
#12035 closed defect (fixed)
Incorrect year format passed for jquery datepicker
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | DateFieldPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
filter.py
format = {'dmy': 'dd%smm%syy', 'mdy': 'mm%sdd%syy', 'ymd': 'yy%smm%sdd' }.get(self.date_format, 'dd%smm%syy') % (self.date_sep, self.date_sep)
According to jquery ui docs http://api.jqueryui.com/datepicker/ "yy" refers to four-digit letter
y - year (two digit) yy - year (four digit)
Trac although expects milestone dates to be in format of MM/DD/YY hh:mm:ss, thus I imagine the year format should be just "y"?
Attachments (0)
Change History (3)
comment:1 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
We should probably just give the user full control to specify the format, be it a 2 or 4 digit year. I'll wait until someone complains before making the effort since this plugin will be deprecated with Trac 1.2.
Note: See
TracTickets for help on using
tickets.
In 14331: