RTC_ESP32_NTP returns a byte with "GetYear"... https://www.flowcode.co.uk/wiki/index.p ... k)#GetYear
Isn't that odd? The NTP protocol returns a 4 digit for the year.
Off course there is no way that the NTP will return a number in the past, but for certain calculations (like the weekday) the whole year is necessary.
RTC_ESP32_NTP returns a byte with "GetYear"?
-
- Posts: 249
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 5:11 pm
- Has thanked: 75 times
- Been thanked: 51 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: RTC_ESP32_NTP returns a byte with "GetYear"?
Hello,
It seems to be buried in the time library for the ESP IDF. I've had a quick dig in to try and find out more but haven't made much progress. Looks to be being truncated to 2 digits somewhere.
It seems to be buried in the time library for the ESP IDF. I've had a quick dig in to try and find out more but haven't made much progress. Looks to be being truncated to 2 digits somewhere.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel