Skip to content
New issue

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

RTC time update beyond 2034 did not work #10

Closed
itzshahzad opened this issue Oct 17, 2021 · 3 comments
Closed

RTC time update beyond 2034 did not work #10

itzshahzad opened this issue Oct 17, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@itzshahzad
Copy link

Hi,

I am using this library with ESP32 if I update the time to the 2038 year or above any year it does not hold a proper year. It goes back to different years for example
rtc.setTime(58, 42, 12, 17, 10, 2045);
H M S D M Y
12 42 58 17 10 2045

Response from the device
12:51:34 30:05:1905

Any suggestion or help is highly appreciated.

Thanks

@fbiego
Copy link
Owner

fbiego commented Oct 24, 2021

I think the issue is with the epoch time (long) which has a max value of 2,147,483,647 which translates to Tuesday, January 19, 2038 3:14:07 AM

@fbiego fbiego added bug Something isn't working help wanted Extra attention is needed labels Oct 24, 2021
@itzshahzad
Copy link
Author

@fbiego Thanks for your reply. Is there any solution for this future-oriented problem?

@fbiego
Copy link
Owner

fbiego commented Oct 25, 2021

Looks like there's no solution for now

https://en.wikipedia.org/wiki/Year_2038_problem

fbiego added a commit that referenced this issue Jul 29, 2022
Temporary fix 2K38 bug #10
#12
@fbiego fbiego removed the help wanted Extra attention is needed label Jul 30, 2022
@fbiego fbiego closed this as completed Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants