|
发表于 2024-12-20 13:14:05
|
显示全部楼层
n
本帖最后由 wes58 于 2024-12-23 09:51 编辑
I was looking for this. So it is good to find it.
When looking at the code in ev_rtc.c, I noticed that Telink is using year 2000 as start of UTC time.
If I want to sync the time that I get from NTP server, the start year that is used by NTP server is 1900. So I will get incorrect result.
I know that I can change in the code the start year to 1900.
The other way would be to enter the time in the time structure and convert it using ev_rtc_utc2Second().
But is there a reason why Telink decided to use 2000?
And, BLE ZigBee concurrent SDK doesn't have ev_rtc.c and ev_rtc.h files!
|
|