RTC_ESP32_NTP date/time return format
Posted: Tue Jun 13, 2023 6:39 pm
To verify that I could connect my ESP32 project to the 'net and communicate with another site I thought getting the time would be a good case.
Basically I can gather the date and time but the format isn't what I expected.
The returned RTC_ESP32_NPT1::GetTimeString(1) returns 00:00:00 and repeated calls in 1 sec intervals then starts to count the seconds.
So it looks that the 1st call returns 00:00:00 and next calls return the time since the 1st call, which seems a bit weird.
The returned RTC_ESP32_NTP1::GetDateString(0) returns 01/01/226.
I could have understood 01/01/2000 or something, but really expected 13/06/2023.
What am I missing? FC attached with SSID and PW blanked out.
Jan
Basically I can gather the date and time but the format isn't what I expected.
The returned RTC_ESP32_NPT1::GetTimeString(1) returns 00:00:00 and repeated calls in 1 sec intervals then starts to count the seconds.
So it looks that the 1st call returns 00:00:00 and next calls return the time since the 1st call, which seems a bit weird.
The returned RTC_ESP32_NTP1::GetDateString(0) returns 01/01/226.
I could have understood 01/01/2000 or something, but really expected 13/06/2023.
What am I missing? FC attached with SSID and PW blanked out.
Jan