Skip to content

fix: datetime.utcfromtimestamp is deprecated and scheduled for removal #1676

@WilliamBergamin

Description

@WilliamBergamin

datetime.utcfromtimestamp was deprecated in python 3.12. It is used in this project in

We should replace

datetime.utcfromtimestamp(self.installed_at)

In favor of

datetime.fromtimestamp(self.installed_at, tz=timezone.utc)

Unit test should be added to ensure backwards compatibility

Requirements

For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-triage-skipbugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedpythonPull requests that update Python codesemver:patch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions