-
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
configTime ignores timezone in rc2 #3774
Comments
since there are more than one time lib and the only one distributed via library manager does not have configTime() |
Looks like its part of the core to me: ./cores/esp8266/time.c:void configTime(int timezone, int daylightOffset_sec, const char* server1, const char* server2, const char* server3) |
@dragondaud thanks for reporting. This is now fixed and verified with your sketch. |
@dragondaud: sorry, never thought on looking there. |
Closing, as the issue is in an unmerged PR, and also seems to be already fixed. If there are further comments about the time issue in lwop2, please comment in the PR itself. |
Hardware
Hardware: ESP-12
Core Version: 2.4.0-rc2
Description
After upgrading from 2.4.0-rc1 to 2.4.0-rc2, I noticed the timezone parameter seems to be ignored by configTime, and ctime() returns only GMT. The included sketch demonstrates this problem, and when compiled with rc1 or earlier it shows the correct time output, based on TZ setting. In rc2, the same sketch shows only GMT. If there is an expected change in behavior, I could find no documentation.
Settings in IDE
Module: NodeMCU 1.0
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Upload Using: SERIAL
Sketch
The text was updated successfully, but these errors were encountered: