Modify

Opened 5 years ago

Last modified 4 years ago

#5719 new defect

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

Reported by: thomas.moschny@… Owned by: doki_pen
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@… 5 years ago.
quick'n'dirty fix

Download all attachments as: .zip

Change History (4)

comment:1 Changed 5 years ago by brainsik

I'm also experiencing this problem. Trac 0.11.5.

Changed 5 years ago by thomas.moschny@…

quick'n'dirty fix

comment:2 Changed 5 years ago by thomas.moschny@…

  • 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 4 years ago by anonymous

  • Owner changed from pacopablo to doki_pen

Add Comment

Modify Ticket

Action
as new The owner will remain doki_pen.
Author


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

 
Note: See TracTickets for help on using tickets.