Closed
Description
Benjamin@Discord reported that at 2021-01-17T16:36:29 this sketch shows:
Sunday, July 28 1986 310985:36:29
Hour: 310985
Adding 310,985 hours to 1986-07-26 gives the correct time at the moment of running that sketch.
This was double-checked in Wokwi using the 'Time' library along with #include <TimeLib.h>
. @yepher kindly tested this on real hardware, and confirmed that the results in Wokwi differ. When they ran that sketch on real hardware their output was:
11:54:31.640 -> Monday, January 17 2022 17:54:31
11:54:31.640 -> Hour: 17
I would expect the behaviour of Wokwi to match the real-world hardware's results. As @urish said in that comment thread, "My bet is that's some missing feature in the RTC".