Ticket #6094 (closed defect: worksforme)
current_date function doesnt work
| Reported by: | deepak.arora@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by eblot) (diff)
when I try to execute 'select current_date', a standard postgresql command to get the current date, it throws an internal error:
Python Traceback
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "C:\Python24\Lib\site-packages\trac\web\main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "C:\Python24\Lib\site-packages\trac\ticket\report.py", line 88, in process_request
resp = self._render_view(req, db, id)
File "C:\Python24\Lib\site-packages\trac\ticket\report.py", line 346, in _render_view
value['date'] = format_date(cell)
File "C:\Python24\Lib\site-packages\trac\util\datefmt.py", line 68, in format_date
return format_datetime(t, format, gmt)
File "C:\Python24\Lib\site-packages\trac\util\datefmt.py", line 58, in format_datetime
t = time.localtime(float(t))
Let me know if I am missing anything.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


