-
There is a report that when using the library Time (https://github.com/PaulStoffregen/Time) that some strange interaction can cause that libraries month() to return erroneous value of 13. given a date and time of
|
Beta Was this translation helpful? Give feedback.
Answered by
Makuna
Jan 19, 2023
Replies: 1 comment 8 replies
-
I created a test sketch to ignore the RTC and just work with RtcDateTime and the library in question. I ran it on ESP32 and didn't see any issues.
and the output around that date and time
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Arduino IDE. I have found in the past that flags that are passed to the compiler have changed and that cause unintentional effects and BUGs. AVR for some reason has these issues popup every few years and I don't know why. I suspect they are looking for optimizations since it's truly an 8 bit processor with tight memory, and they don't use a wide enough test suit to catch this stuff.
My investigation was to see if I could find a root cause and understand why my library can cause any effect on another as it could popup elsewhere. But my library is pretty straight forward and the only thing is a PROGMEM array (pretty standard AVR). The timelib does do some funky things to override…