Opened 9 years ago

Last modified 3 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


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/", line 444, in _dispatch_request
  File "/opt/trac/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/irclogs/", line 352, in process_request
  File "build/bdist.linux-x86_64/egg/irclogs/", 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 8 years ago.
quick'n'dirty fix

Download all attachments as: .zip

Change History (5)

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

I'm also experiencing this problem. Trac 0.11.5.

Changed 8 years ago by Thomas Moschny

quick'n'dirty fix

comment:2 Changed 8 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 8 years ago by anonymous

Owner: changed from John Hampton to Robert Corsaro

comment:4 Changed 3 years ago by Ryan J Ollos

Owner: Robert Corsaro deleted

Modify Ticket

Change Properties
Set your email in Preferences
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.