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

When using --since I get DeprecationWarning: datetime.datetime.utcnow() #8

Closed
hartmark opened this issue May 8, 2024 · 1 comment
Closed

Comments

@hartmark
Copy link
Contributor

hartmark commented May 8, 2024

% archnews --since 10                               
/usr/bin/archnews:330: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  datetime.utcnow().date() - timedelta(days=num_days),
% archnews --version
archnews version 1.2.0

hartmark added a commit to hartmark/archnews that referenced this issue May 8, 2024
@mjiricka
Copy link
Owner

Thank you, your fix solved the issue. I did not run the latest Python thus I did not see the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants