[Bug 207604] Re: pytz includes a hard coded list of time zone names

Benjamin Drung 207604 at bugs.launchpad.net
Wed Nov 16 14:33:44 UTC 2022


** Bug watch added: github.com/stub42/pytz/issues #91
   https://github.com/stub42/pytz/issues/91

** Changed in: pytz
   Importance: Medium => Unknown

** Changed in: pytz
       Status: Fix Released => Unknown

** Changed in: pytz
 Remote watch: None => github.com/stub42/pytz/issues #91

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-tz in Ubuntu.
https://bugs.launchpad.net/bugs/207604

Title:
  pytz includes a hard coded list of time zone names

Status in pytz:
  Unknown
Status in python-tz package in Ubuntu:
  Confirmed

Bug description:
  The Debian/Ubuntu packages of pytz include a patch to not install
  pytz's zoneinfo database and instead load data from the system
  zoneinfo database.  This keeps pytz up to date when system timezone
  updates are installed which is generally a good idea.

  The pytz/__init__.py includes common_timezones and all_timezones
  lists, which enumerate the time zones in the database pytz was
  released with.  If pytz is instead using the system database, these
  lists may not be correct (e.g. missing newly added time zones).

  all_timezones and common_timezones should be calculated at run time.
  all_timezones will need to use os.walk to discover what timezones
  exist. common_timezones should be loaded from zone.tab, plus a hard
  coded list of extras such as UTC and US/Eastern.

To manage notifications about this bug go to:
https://bugs.launchpad.net/pytz/+bug/207604/+subscriptions




More information about the foundations-bugs mailing list