-
Notifications
You must be signed in to change notification settings - Fork 846
Open
Labels
auto-triage-skipbugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedpythonPull requests that update Python codePull requests that update Python codesemver:patch
Description
datetime.utcfromtimestamp
was deprecated in python 3.12. It is used in this project in
- slack_sdk/oauth/installation_store/models/installation.py
- slack_sdk/oauth/installation_store/models/bot.py
- slack_sdk/oauth/state_store/sqlalchemy/init.py
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
Labels
auto-triage-skipbugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedpythonPull requests that update Python codePull requests that update Python codesemver:patch