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

Fix DST handling in DateTime conversion #292

Merged
merged 1 commit into from
Jan 8, 2022

Conversation

janh
Copy link
Contributor

@janh janh commented Jan 2, 2022

The field tm_isdst needs to be set to a negative value for mktime to apply the local daylight saving time rules.

Obviously, times are still going to be wrong when the time zones of the devices don't match. But as long as they do, this should actually result in correct times, except for cases where there is ambiguity due to DST (but that is unfixable as long as the device only reports local times without timezone offset).

The field tm_isdst needs to be set to a negative value for mktime to
apply the local daylight saving time rules.
@whoozle whoozle merged commit 0f4af58 into whoozle:master Jan 8, 2022
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.

2 participants