-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversions from Unix time to CHIP Epoch are wrong #30990
Labels
Comments
tcarmelveilleux
added
testing
IM Event Epoch Timestamp
tests
time sync
Implementation of the Time Synchronization cluster
labels
Dec 13, 2023
github-actions
bot
removed
the
time sync
Implementation of the Time Synchronization cluster
label
Dec 13, 2023
The text says "time elapsed, not counting leap-seconds" which means we're effectively using TAI or a smeared definition of UTC? |
tcarmelveilleux
pushed a commit
to tcarmelveilleux/connectedhomeip
that referenced
this issue
Dec 14, 2023
- Test conversions in Time Sync cluster were not in a unit-testable location. - TestTimeUtils was not using nl-unit-test - Time sync cluster server build rules were missing dependencies - Documentation for many time conversion methods was not accurate - `secondsToMilliseconds` did not match coding style - Cleaned-up cut and paste errors in some adjacent tests. Issue project-chip#30990 Testing done: - Unit tests and integration tests still pass. - Started tests for edge conditions (which found project-chip#30990)
thivya-amazon
pushed a commit
to thivya-amazon/connectedhomeip
that referenced
this issue
Dec 18, 2023
…ct-chip#31021) * Clean-up time conversions locations - Test conversions in Time Sync cluster were not in a unit-testable location. - TestTimeUtils was not using nl-unit-test - Time sync cluster server build rules were missing dependencies - Documentation for many time conversion methods was not accurate - `secondsToMilliseconds` did not match coding style - Cleaned-up cut and paste errors in some adjacent tests. Issue project-chip#30990 Testing done: - Unit tests and integration tests still pass. - Started tests for edge conditions (which found project-chip#30990) * Restyled by clang-format * Add backwards compatibility --------- Co-authored-by: [email protected] <[email protected]> Co-authored-by: Restyled.io <[email protected]>
This is not completed, re-opening |
github-project-automation
bot
moved this from Done
to In Progress
in [Feature] Time Sync
Dec 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://www.nist.gov/pml/time-and-frequency-division/time-realization/leap-seconds
As of Dec 13, 2023, there are 37s of difference between a given POSIX/TAI time (earlier) and UTC time (later).
All of our conversions from POSIX time to CHIP Epoch time are made assuming TAI timeline, while the spec says:
It was found, while adding unit tests to src/lib/support/tests/TestTimeUtils.cpp that there are no "absolute" well-known values used to validate the time scales, and that the Time Sync cluster's implementation of POSIX to CHIP Epoch time is not correctly handled.
The text was updated successfully, but these errors were encountered: