Details
-
Bug
-
Resolution: Done
-
Trivial - P5
-
None
-
2.4.4
-
None
-
ALL
Description
unsigned long long is not best suitable to store date/time values because its may be negative.
Or cast it correctly anywhere.
file misc.h:99
return millis / 1000;
this makes unsigned division and return incorrect time_t for negative ( less than '1970-01-01' )
must be:
return static_cast<long long>( millis ) / 1000;
Thanks.