Edgewall Software

Opened 17 years ago

Last modified 16 years ago

#6094 closed defect

current_date function doesnt work — at Initial Version

Reported by: deepak.arora@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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

valuedate = 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.

Change History (0)

Note: See TracTickets for help on using tickets.