Opened 18 years ago
Closed 18 years ago
#6443 closed defect (duplicate)
Adding a new version causes an error
| Reported by: | jsweeney | Owned by: | Christopher Lenz | 
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | admin/web | Version: | |
| Severity: | major | Keywords: | needinfo | 
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
To Reproduce:
- Go to the trac admin section
 - Click Versions
 - Add a version with a name of Private Beta and a date of 12/05/2007
 - Click add
 
You will recieve: ( at least I did )
Python Traceback
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.4/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "/var/lib/python-support/python2.4/webadmin/ticket.py", line 243, in process_admin_request
    ver.time = util.parse_date(req.args.get('time'))
  File "/var/lib/python-support/python2.4/trac/util/datefmt.py", line 114, in parse_date
    raise ValueError, '%s is not a known date format.' % text
ValueError: 12/05/2007 is not a known date format.
      Attachments (0)
Change History (7)
comment:1 by , 18 years ago
| Keywords: | needinfo added | 
|---|---|
| Severity: | critical → major | 
comment:2 by , 18 years ago
| Component: | general → webadmin | 
|---|---|
| Description: | modified (diff) | 
| Owner: | changed from to | 
| Priority: | high → normal | 
Some hints about the date format are shown close to the date input field.
Did you use the proposed syntax? The date format to use depends on the locale defined on the server.
comment:3 by , 18 years ago
| Version: | → devel | 
|---|
The date format hints have been there a long time. If you use that format an get the error, this is worth looking into.
However, if not, I just tested on current trunk and we no longer give a traceback for this error - It now reports 'Error: Invalid Date' with a good explanation (obviously depending on what the format is for each server):
"12/05/2007" is an invalid date, or the date format is not known. Try "DD.MM.YYYY" instead.
Propose 'worksforme' if no new information becomes available.
comment:4 by , 18 years ago
| Version: | devel | 
|---|
Oops. Did not intend to set the version. Clearing it again.
comment:5 by , 18 years ago
I also get this problem using trac 0.95. I dont see any hints about the expected format, and i dont have any existing versions set that i could copy.
Get following error:
Trac detected an internal error: 30/10/07 is not a known date format.
Traceback (most recent call last):
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 226, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/TracWebAdmin-0.1.1dev_r2765-py2.4.egg/webadmin/web_ui.py", line 106, in process_request
    path_info)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/TracWebAdmin-0.1.1dev_r2765-py2.4.egg/webadmin/ticket.py", line 140, in process_admin_request
    ver.time = util.parse_date(req.args.get('time'))
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/util.py", line 458, in parse_date
    raise ValueError, '%s is not a known date format.' % text
ValueError: 30/10/07 is not a known date format. 
I have tried every format i can think of including suggestion above
comment:7 by , 18 years ago
| Resolution: | → duplicate | 
|---|---|
| Status: | new → closed | 



  
What version of Trac are you using?