-
Notifications
You must be signed in to change notification settings - Fork 13.3k
change static variable time_zone? #6675
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
Comments
line 440 is the declaration of the global, line 103 is making use of it. It's correct. BTW, static means that the variable is private to the file and isn't visible/accesible from other files. |
@devyte but why the print out of |
You said 8 hours ahead. That's not the same as utc +8, unless your timezone is 0. Which of the two is it? Is your timezone 0? |
I'm in GMT (=UTC), so i'm using timezone_sec=0, right? |
And btw. if i'm using timezone_sec=-10800 (UTC -3 hours) the print out is 23:17:00, too... |
Alright, please open a new issue and follow the template instructions, including MCVE, and let's discuss there. Add the above explanations in the description. |
I'm using
Arduino/cores/esp8266/time.cpp
Line 101 in 36c369b
with
timezone_sec=0
but wondering about that the time after this call is 8 hours in front.I'm not a c(++) expert, but could it be, that the following as no affect?
Arduino/cores/esp8266/sntp-lwip2.cpp
Line 440 in 36c369b
because of the static declaration of
time_zone
inArduino/cores/esp8266/sntp-lwip2.cpp
Line 103 in 36c369b
The text was updated successfully, but these errors were encountered: