Replies: 4 comments 2 replies
-
In ESP32 and ESP8266, your device system time will be used as library reference time then there is no change to your device system time if it is already set otherwise, it will be set from the NTP time. |
Beta Was this translation helpful? Give feedback.
-
There is some exception that your device system time will always be re-synch or set from NTP server when you set Note: In your case, you should not assign any value to |
Beta Was this translation helpful? Give feedback.
-
Hello.
|
Beta Was this translation helpful? Give feedback.
-
FYI If your device woke up from deep sleep, some internal core environment variables are lost included time zone ("TZ"). You should call configTime(0, 0, "pool.ntp.org", "time.nist.gov", "time.google.com");
setenv("TZ", "your time zone env variable string e.g., JST-9 for Asia/Tokyo", 1);
tzset();
For time zone environment variable string, see https://raw.githubusercontent.com/nayarsystems/posix_tz_db/master/zones.csv https://man7.org/linux/man-pages/man3/setenv.3.html |
Beta Was this translation helpful? Give feedback.
-
Hello.
In my code I setup the NPT servers and time zones/offsets myself and do it just once. However, I've noticed that the Firebase-ESP code also calls the configtime function setting the offset and the NPT servers. Does that mean Firebase-ESP is overwriting my settings? If so, what should I do to keep my settings?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions