Hi,
Running the asset_tracker V1 i obtain a LTE connection and date time:
[00:00:19.338,226] [0m<inf> asset_tracker: DATE_TIME_OBTAINED_NTP
I want to convert it to a tm structure
So I do something like:
int64_t ms; static struct tm tminfo; date_time_now(&ms); gmtime_r (&ms, &tminfo );
I always end up with strange values in the tminfo structure
Is there another call I need to make to convert the date_time_now value into a unix epoch first?
Many thanks