<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Date time issue with nrf9160 using SDK 1.4.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76031/date-time-issue-with-nrf9160-using-sdk-1-4-2</link><description>Hi, 
 
 I am trying to get the time and UNIX time after LTE connected. but getting 0 only. 
 please log 
 
 date_time_update() function does not support in SDK 1.4.2 so I used date_time_now() and this keep giving me zero value for time. 
 
 please check</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 12:54:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76031/date-time-issue-with-nrf9160-using-sdk-1-4-2" /><item><title>RE: Date time issue with nrf9160 using SDK 1.4.2</title><link>https://devzone.nordicsemi.com/thread/313932?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 12:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba54dfe-43cd-48c9-b13d-fb8f56e23575</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Rahul,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.2/nrf/releases/release-notes-1.4.0.html?highlight=date_time_update"&gt;According to NCS v1.4.0 Release Notes&lt;/a&gt;, the function&amp;nbsp;&lt;span&gt;date_time_update&lt;/span&gt;&lt;span&gt;() has been renamed to&amp;nbsp;&lt;span&gt;date_time_update_async&lt;/span&gt;(). What happens if you change to this? From what I read in the documentation, you will need to run this after LTE connection is established.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;It is recommended to call the&amp;nbsp;&lt;code&gt;&lt;span&gt;date_time_update_async()&lt;/span&gt;&lt;/code&gt;&amp;nbsp;function after the device has connected to LTE, to get the initial date-time information.&amp;quot; &lt;em&gt;Note there is a documentation bug, where the&amp;nbsp;async is missing.&lt;/em&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>