Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

API: Default to stdlib timezone objects instead of pytz #34916

Copy link
Copy link
Closed
@jbrockmendel

Description

@jbrockmendel
Issue body actions

i.e. when we get pd.Timestamp.now("UTC") we should return a Timestamp with datetime.timezone.utc rather than pytz.UTC. Similarly when we parse an ISO8601 datetime we should use tzinfo of timezone(timedelta(seconds=val*60)) instead of pytz.FixedOffset(val)

This isn't that hard to implement, but doing it breaks a couple dozen tests where we are currently checking for pytz objects. This would technically be an API change, so putting it up for discussion before implementing it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.