Skip to content

Fix timezone-dependent EIT time conversion - #54

Merged
nekohkr merged 1 commit into
nekohkr:mainfrom
tgjqr:test
Jul 19, 2026
Merged

Fix timezone-dependent EIT time conversion#54
nekohkr merged 1 commit into
nekohkr:mainfrom
tgjqr:test

Conversation

@tgjqr

@tgjqr tgjqr commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

This PR fixes an issue where EIT program times were converted using the host machine's local timezone.

EIT date and time values are expressed in JST (UTC+9), but std::mktime() interprets them as local time. As a result, the generated Unix timestamps differed depending on the timezone configured on the machine running the application.

@nekohkr
nekohkr merged commit 7d9c7e2 into nekohkr:main Jul 19, 2026
2 checks passed
@nekohkr

nekohkr commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Thank you for your contribution! I didn't consider other time zones.

@tgjqr
tgjqr deleted the test branch July 20, 2026 01:08
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