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

datetime error #145

Open
Sylphystia opened this issue May 22, 2024 · 1 comment
Open

datetime error #145

Sylphystia opened this issue May 22, 2024 · 1 comment
Labels
bug Something isn't working reviewed v0.7.0 Fix version

Comments

@Sylphystia
Copy link

Describe the bug
Getting a datetime/time zone support error.

To Reproduce
Steps to reproduce the behavior:

  1. Load any page at all.
  2. See error in terminal. (No actual admin announcement active needed, the error pops up whatever there is one or not.)

Expected behavior
No error?

Log
RuntimeWarning: DateTimeField AdminAnnouncement.expires_on received a naive datetime (2024-05-22 16:47:56.154048) while time zone support is active.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.5 LTS
    (archive running locally)
@c-e-p
Copy link
Collaborator

c-e-p commented Jun 5, 2024

@Sylphystia Thank you for reporting this! The error itself is harmless - it's just saying we're parsing a datetime without specifying timezone - so probably can be ignored for now, but feel free to update this issue if you see wonky behavior. I can think of places where the behavior would get weird (when admin announcements expire, edge cases with UTC vs local time when manually modifying chive create/update dates) so this is medium priority for a fix.

@c-e-p c-e-p added bug Something isn't working reviewed v0.7.0 Fix version labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reviewed v0.7.0 Fix version
Projects
None yet
Development

No branches or pull requests

2 participants