Modify

Opened 15 years ago

Last modified 10 years ago

#5719 new defect

[Patch] LocalTimezone' object has no attribute 'normalize' (user with 'default' timezone)

Reported by: Thomas Moschny Owned by:
Priority: normal Component: IrcLogsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When the user's timezone is set to default, the irclogs plugin throws:

2009-08-25 14:22:10,998 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "/opt/trac/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/opt/trac/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/irclogs/web_ui.py", line 352, in process_request
    req.tz)
  File "build/bdist.linux-x86_64/egg/irclogs/web_ui.py", line 140, in _render_lines
    local_dt = tz.normalize(server_dt.astimezone(tz))
AttributeError: 'LocalTimezone' object has no attribute 'normalize'

Attachments (1)

irclogsplugin-normalize.patch (503 bytes) - added by Thomas Moschny 15 years ago.
quick'n'dirty fix

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by .:. brainsik

I'm also experiencing this problem. Trac 0.11.5.

Changed 15 years ago by Thomas Moschny

quick'n'dirty fix

comment:2 Changed 15 years ago by Thomas Moschny

Summary: LocalTimezone' object has no attribute 'normalize' (user with 'default' timezone)[Patch] LocalTimezone' object has no attribute 'normalize' (user with 'default' timezone)

Same problem as in #3550, which was closed with a remark that the issue is fixed in the parse_refactor branch, which isn't merged yet, however.

comment:3 Changed 14 years ago by anonymous

Owner: changed from John Hampton to Robert Corsaro

comment:4 Changed 10 years ago by Ryan J Ollos

Owner: Robert Corsaro deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.