Edgewall Software
Modify

Opened 4 years ago

Closed 4 years ago

#12537 closed defect (fixed)

Etc/GMT-14 timezone of pytz is not listed in prefs/datetime

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.0.13
Component: general Version:
Severity: minor Keywords: pytz
Cc: Branch:
Release Notes:

Fix not listing GMT +14:00 timezone for Etc/GMT-14 timezone of pytz in prefs/datetime.

API Changes:
Internal Changes:

Description

>>> import pytz
>>> pytz.timezone('Etc/GMT-13')
<StaticTzInfo 'Etc/GMT-13'>
>>> pytz.timezone('Etc/GMT-14')
<StaticTzInfo 'Etc/GMT-14'>
>>> from trac.util.datefmt import timezone
>>> timezone('Etc/GMT-13')
<FixedOffset "GMT +13:00" 13:00:00>
>>> timezone('Etc/GMT-14')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<venv>/lib/python2.6/site-packages/trac/util/datefmt.py", line 1113, in timezone
    raise KeyError(tzname)
KeyError: 'Etc/GMT-14'

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 4 years ago

Owner: set to Jun Omae
Release Notes: modified (diff)
Status: newassigned

Proposed changes in [50b9ee747/jomae.git].

comment:2 by Jun Omae, 4 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed and merged to 1.2-stable and trunk in [14970-14972].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.