[GH-ISSUE #63] localtime usage #61

Closed
opened 2026-02-26 09:35:18 +03:00 by kerem · 1 comment
Owner

Originally created by @ThomasWaldmann on GitHub (Oct 26, 2013).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/63

Host.poke uses datetime.now() which is local time.

Check if it shouldn't rather be datetime.utcnow() which is utc.

the local time on the server is usually the wrong thing and irrelevant for users in other timezones, so server apps should use utc internally usually.

not sure how django and the other code processes this value though, so check first.

Originally created by @ThomasWaldmann on GitHub (Oct 26, 2013). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/63 Host.poke uses datetime.now() which is local time. Check if it shouldn't rather be datetime.utcnow() which is utc. the local time on the server is usually the wrong thing and irrelevant for users in other timezones, so server apps should use utc internally usually. not sure how django and the other code processes this value though, so check first.
kerem 2026-02-26 09:35:18 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ThomasWaldmann commented on GitHub (Oct 27, 2013):

fixed by a210936dcf

<!-- gh-comment-id:27164044 --> @ThomasWaldmann commented on GitHub (Oct 27, 2013): fixed by a210936dcfb3a8f20e4cc0d8195fa8c130c9a369
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#61
No description provided.