Opened 7 years ago

Last modified 21 months ago

#5719 new defect

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

Reported by: thm 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 thm 7 years ago.
quick'n'dirty fix

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by brainsik

I'm also experiencing this problem. Trac 0.11.5.

Changed 7 years ago by thm

quick'n'dirty fix

comment:2 Changed 7 years ago by thm

  • Summary changed from LocalTimezone' object has no attribute 'normalize' (user with 'default' timezone) to [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 6 years ago by anonymous

  • Owner changed from pacopablo to doki_pen

comment:4 Changed 21 months ago by rjollos

  • Owner doki_pen deleted

Add Comment

Modify Ticket

as new The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.