Skip to content

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