In NCS v2.0.2, date_time_set() not working any more on nRF52840.

Hi,

My Homekit project is based on v1.9.1 NCS.

with CONFIGs:  

CONFIG_DATE_TIME=y  
CONFIG_DATE_TIME_MODEM=n  
CONFIG_DATE_TIME_NTP=n


I use our iOS app to sync the current date/time with nRF52840 and use date_time_set() to set the system date time. 
It works properly, after time sync with the App, I can use gettimeofday() and localtime_r() to get the current epoch time and current tm struct. 
And it is pretty much as same as the code snippet Håkon mentioned in This ticket 

 
I just merged to NCS v2.0.2 today and I found the same code not working anymore. 
After date_time_set() returned 0, I called gettimeofday() and localtime_r(), the current time is always 1969/12/31 23:59 and never changes.

Is it a known issue?

Regards,

Anthony Yuan

Parents Reply Children
No Data
Related