-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
NTP-TZ-DST.ino #5298
Comments
|
Thank you for #clarification. Could it be that:
I'm in Germany (so TZ = 1 and DST_MN = 60). The time should be something with 22:10.
When using TZ 1 and DST_MN 0 I'm getting the right time;
|
@d-a-v can this be closed? The new TZ, NTP, etc code seems to work correctly. |
@TKaluza please try the new ntp-tz-dst example sketch. @Igorystiy please find the major city near you in this file, use it in the new ntp-tz-dst example. Closing this issue, please open a new one if the new example doesn't work with you. |
When I use this example, the Serial displays
date and time. PTM(year) and PTM (mon) not correct. Other PTM data is displayed correctly. When using ctime(&now) or "strftime", all data, including year and month are displayed in the correct line. Is it bug?
Arduino IDE 1.8.5
ESP 8266 Community 2.4.2
ESP 12 Module.
NTP:
localtime:isdst=0:yday=0:wday=4:year=70:mon=0:mday=1:hour=8:min=0:sec=8
...
time:28808 ctime:(UTC+120mn)Thu Jan 1 08:00:08 1970
after given UTC time:
localtime:isdst=0:yday=302:wday=2:year=118:mon=9:mday=30:hour=15:min=52:sec=14
...
time:1540914734 ctime:(UTC+120mn)Tue Oct 30 15:52:14 2018
Have idea?
The text was updated successfully, but these errors were encountered: