We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling getEpoch it returns an Epoch that is 36 years (!) in the future, despite date and time are set and shown correctly.
Simple test code:
#include <Arduino.h> #include <I2C_RTC.h> static PCF8563 RTC; void setup(void) { Serial.begin(9600); while (!Serial) ; // Start RTC and check status RTC.begin(); if (!RTC.isRunning()) { RTC.setDateTime(__DATE__, __TIME__); RTC.updateWeek(); } } void loop(void) { if (RTC.isRunning()) { Serial.print("Time: "); Serial.print(RTC.getHours()); Serial.print(":"); Serial.print(RTC.getMinutes()); Serial.println(); Serial.print("Date: "); Serial.print(RTC.getDay()); Serial.print("-"); Serial.print(RTC.getMonth()); Serial.print("-"); Serial.print(RTC.getYear()); Serial.println(); Serial.print("Epoch: "); Serial.print(RTC.getEpoch()); Serial.println(); delay(1000); } }
Output:
Time: 9:35 Date: 31-8-2023 Epoch: 2832768244
The text was updated successfully, but these errors were encountered:
Which nano board exactly?
Sorry, something went wrong.
I am finding this problem with a 'generic' v3 nano clone
Arduino nano uses Atmega328p itself, right?
yes that is correct
Fixed in v1.9.0
No branches or pull requests
When calling getEpoch it returns an Epoch that is 36 years (!) in the future, despite date and time are set and shown correctly.
Simple test code:
Output:
The text was updated successfully, but these errors were encountered: