Skip to content

One more UTC bugfix for the road #6

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mraygalaxy
Copy link
Collaborator

So, most of the UTC repairs we performed last year were correct, except for this one.

Unix "epochs" by themselves are timezone-less. It's when they are "interpreted" as human-readable
timestamps that they are parsed by python incorrectly.

When these epochs (from time()) are directly compared to each other, they are timezone-less,
and do not need to be offset.

But, when they are "fed" to python to be converted as human-readable, those rare cases are
when the timezones get lost.

We've already handled correctly in the past when human timestamps are compared to human
timestamps --- that all works fine --- no repair needed there.

So, most of the UTC repairs we performed last year were correct, except for this one.

Unix "epochs" by themselves are timezone-less. It's when they are "interpreted" as human-readable
timestamps that they are parsed by python incorrectly.

When these epochs (from time()) are directly compared to each other, they are timezone-less,
and do not need to be offset.

But, when they are "fed" to python to be converted as human-readable, those rare cases are
when the timezones get lost.

We've already handled correctly in the past when human timestamps are compared to human
timestamps --- that all works fine --- no repair needed there.
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

Successfully merging this pull request may close these issues.

1 participant