Skip to content

Use system provided tzdata as a priority #769

Open
@tuukkamustonen

Description

@tuukkamustonen
  • I am on the latest Pendulum version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • OS version and name: Ubuntu 22.04

  • Pendulum version: 2.1.2

Issue

Pendulum uses tzdata package and imports the tzdata in https://github.com/sdispater/pendulum/blob/75a87a4e3cab45c5f9c38ca6060a54337dcadd09/src/pendulum/tz/__init__.py#L28

However, tzdata package's docs state:

It is generally recommended that any time zone libraries should attempt to use the system data before using the tzdata package

Should Pendulum rather look into system provided files first, and only resort to tzdata if the data is not found?

It's of course easier to just import from Python's tzdata package. Simiarly, if system provided data was used as a priority, then there would be need for a mechanism to override the system-provided data with Python's tzdata package (if OS provided tzdata is too old / incomplete).

So, might not be actionable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions