-
Notifications
You must be signed in to change notification settings - Fork 4
Year Change Date Problem #36
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
Comments
Hi - That is weird... But just now looking at the ISO8601 spec, it uses "week-based year" (this is new to me too TBH). We're using strftime() to create the ISO8601 time string, with the %G format code for the year here. From here Details for %G:
If I read this correctly, when the date switched to the 30th of Dec, the ISO8601 year switched to 2025. So this is working as it should for ISO8601 time string, but an ISO8601 time string for some end of year situations are not what one would expect. Hope that helps. -Kirk |
I don't think this counts as closed. you said:
one wouldn't expect it, because its wrong. A data sample is shown as December 30 2025 that was taken 2024. its off by a year. should the firmware be changed to have a "Y" instead of a "G"? Just to be clear my tone is not angry. |
No worries - I get it. It is wrong. From a limited search - there might be different calendar types used (which makes sense) with a week-date being one of the options. The code that was copied for the framework/data logger used the week-date (%G) format - probably b/c it listed ISO 8601 in the option. I created this issue sparkfun/flux-sdk#180 to get this reviewed/fixed in the underlying SDK. We looking at a late Q1 update to the datalogger firmware - once we merge in update that came through from the RP2350 port of our framework. We'll Thanks! |
Neat. thanks I look forward to the update. |
This new year, I think there was an issue with the logged year not updating correctly. At midnight on Dec 29 (not even the last day of the year), it updated from Dec 29 to Dec 30 (like it should) but also increased the year from 2024 to 2025. It basically jumped to one year in the future. At the beginning of the next log file the year was corrected.
Here is a little data log snip:
Any ideas on what could cause this? I last updated the firmware on April 19, 2024.
The text was updated successfully, but these errors were encountered: