-
Notifications
You must be signed in to change notification settings - Fork 380
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
Incorrect date/year with ESP8266 board 3.0.0 #149
Comments
Exactly the same bug here, with the exception that no downgrade helped in my code. I've tried 3.2.0, 3.1.0 and 3.0.0. |
3.2.0? I wasn't referring to the version of the NTP library, but the ESP8266 board library. The most recent version for that is 3.0.0, To fix this problem that library (not the NTP library) has to be downgraded to 2.7.* |
Oh, I'm sorry, I didn't read your post carefully enough and yes you're right, I downgraded the board library and the error disappeared. |
this is scary, I did a grep -r for time_t in my $HOME/.arduino15 area and it was a random mix of 32 unsigned, 32 signed, and 64 unsigned (good!) types. some from lwip, some from esp, some from other areas. my god, this should really be cleaned up, somehow ;) in this day and age, I'm not sure why we're not all using 64bit time_t types. anyone have a good reason why we're still stuck in 32 bit land for time types? didn't we already fix things back in y2k days? (half serious). |
same problem here :( I noticed that when I reboot the ESP8266 the date is correct at first, it's only when I update it that it goes wrong... is someone working on this issue, or did you guys found a temporary fix (excluding the downgrade)? |
Hello, I am having the same problem. I did downgrade the ESP8266 to 2.3.0 but it still showing me different date after a while.
|
Use 2.7.4. |
Changed to 2.7.4 but the time still changes and addition with error exception(9)
|
I think this is unrelated, for me it works fine, please post your code.
|
I commented out Firebase related stuff, and It works fine for me after
hours of testing as well, I got no errors, the time is correct too on my
Wemos D1 mini.
MEDICINE REMINDER SYSTEM
Today is : sunday
Current Time : 20:51:07
Current Time : 2021-11-7
Medicine For sunday is here (Medicine Not Taken)
0
0
1
20:51
Medicine for Today is taken! :)
Either your module is corrupted, or you don't use the 2.7.4 esp8266 board or
this error is Firebase related.
|
Time is ok, but date is wrong for me too. |
Recently I ran into the problem that the NTP-sketch from https://randomnerdtutorials.com/esp8266-nodemcu-date-time-ntp-client-server-arduino/ suddenly displays incorrect dates and year, time is correct. Example output before and after timesync:
I thought I'd tracked down the cause of the problem, this issue appeared after having updated the ESP8266 boards platform to 3.0.0, downgrading it and reflashing the sketch solves the problem.
Yesterday I reported it at esp8266/Arduino#8118, but according to who responded, this problem is in the NTP library, it might have something to do with 32 and 64 bit time_t.
The text was updated successfully, but these errors were encountered: