Edgewall Software

Ticket #5098 (closed enhancement: wontfix)

Opened 18 months ago

Last modified 18 months ago

4/1/7 ought to be a valid date format

Reported by: anonymous Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.10.3.1
Severity: normal Keywords: date format
Cc:

Description (last modified by eblot) (diff)

When I created a milestone with date "4/1/7", I got the following:

Traceback (most recent call last):
  File "/data/devjavu/releases/20070406070414/trac/lib/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/data/devjavu/releases/20070406070414/trac/lib/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/tmp/bdist/webadmin/web_ui.py", line 109, in process_request
  File "/tmp/bdist/webadmin/ticket.py", line 163, in process_admin_request
  File "/data/devjavu/releases/20070406070414/trac/lib/trac/util/datefmt.py", line 114, in parse_date
    raise ValueError, '%s is not a known date format.' % text
ValueError: 4/1/7 is not a known date format.

Attachments

Change History

Changed 18 months ago by eblot

  • description modified (diff)
  • milestone none deleted

Changed 18 months ago by eblot

Actually, a "valid" date would be 4/1/07.

Non-ISO8601 dates are parsed with the regular Python date parser, which does not seem to accept years coded on a single digit.

Propose as wontfix.

Changed 18 months ago by mgood

  • status changed from new to closed
  • resolution set to wontfix

Yes, as eblot said you need to use a 2-digit year, which is standard for date formatting.

Add/Change #5098 (4/1/7 ought to be a valid date format)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.