-
Notifications
You must be signed in to change notification settings - Fork 379
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
Add handling for NTP server returning 0 #193
Comments
Just noticed the same problem where the date shows as 07/02/2036 07:28:16, which seems to be the 0 value + 70 years :) |
I got the same error while offline for ~14 hours. I was using getEpochTime() |
Also had the issue with my watering system which has the following logic:
|
Fixes arduino-libraries#193, fixes 84, fixes Credits to @frankB415 for the Code in Issue arduino-libraries#193!
Hi @frankB415. Thanks for taking the time to submit an issue. I see we have another report about this at #84. It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other. If you end up with additional information to share, feel free to comment in the other thread. |
I had some issues with wrong date as i used that lib on an ESP32. After debugging i found, that the NTP server sends from time to time "0" as response.
So I added 3 lines to handle that issue.
NTPClient.cpp:113:
The text was updated successfully, but these errors were encountered: