I am attempting to update the RTC time to allow for Daylight Saving Time. I get NPT devicetime and update the RTC using
rtc.adjust(DateTime(devicetime)); without any problems. When I attempt to update the hour with the command
DateTime TempFix = (DateTime(now.year(),now.month(), now.day(),now.hour() + 1,now.minute(),now.second()); The hour does get incremented by one BUT the year gets changed from 2020 to 2050. But if I follow the month change with a year change of -30 to get back to 2020 nothing happens and the year stays at 2050. Any Ideas what I could be doing wrong?
Hi,It has been fixed. Please check out the following links
Seeed_Arduino_RTC
2 Likes
I have tested the new Seeed_Arduino_RTC library and my problem has been fixed. Thamk you.