Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated datetime module function fix #1445

Open
lexe11 opened this issue Sep 18, 2024 · 1 comment
Open

Deprecated datetime module function fix #1445

lexe11 opened this issue Sep 18, 2024 · 1 comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@lexe11
Copy link

lexe11 commented Sep 18, 2024

Module

mail_tracking

Describe the bug

datetime.utcnow() & datetime.utcfromtimestamp() are deprecated and I changed them to datetime.now(timezone.utc) & datetime.fromtimestamp(int(timestamp), timezone.utc) respectively.

Expected behavior
Should fix an error.

Additional context
This module doesn't rely on SendGrid webhook events which makes email tracking very limited.

@lexe11 lexe11 added the bug label Sep 18, 2024
petrus-v added a commit to petrus-v/social that referenced this issue Jan 21, 2025
Since python12 utcfromtimestamp is deprecated which generate deprecation warnings
class TestMailTrackingEmailCleanUp(SavepointCaseWithUserDemo):

fix OCA#1445
Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant