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 tz_offset being unsigned int #1107

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

hutauf
Copy link

@hutauf hutauf commented Dec 5, 2024

fix tz_offset being unsigned int, however it's supposed to be a signed int

In the MDF spec for v3:
INT16 1 UTC time offset in hours (= GMT time zone)

The time offset is defined as INT16, not UINT16.

If the time offset is negative, but interpreted as UINT16, it will result in a very large positive number.

@danielhrisca danielhrisca changed the base branch from master to development December 5, 2024 09:22
@danielhrisca danielhrisca merged commit bb4b622 into danielhrisca:development Dec 5, 2024
@danielhrisca
Copy link
Owner

Thank you @hutauf !

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