Naguissa / uRTCLib

Really tiny library to basic RTC functionality on Arduino. DS1307, DS3231 and DS3232 RTCs are supported.
https://www.foroelectro.net/librerias-arduino-ide-f29/rtclib-arduino-libreria-simple-y-eficaz-para-rtc-y-t95.html
GNU Lesser General Public License v3.0
87 stars 24 forks source link

Month should not include century bit -- off by 80 in v6.2.6 #17

Closed davidhbrown closed 4 years ago

davidhbrown commented 4 years ago

The value returned by month() can be too high by 80. E.g., April => 84 when the century bit is set. This became more apparent in v6.2.6 which, in set(...) ORs the month with $80 to set the century bit.