<?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>nRF9160 &amp;gt; AT+CCLK time difference 2hours</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50048/nrf9160-at-cclk-time-difference-2hours</link><description>Dear Team, 
 why is that the command &amp;quot; AT+CCLK&amp;quot; returns time with 2hours of difference? How should one compensate? 
 
 AT+CCLK? +CCLK: &amp;quot;19/07/19,19:57:30+08&amp;quot; OK AT+CCLK? +CCLK: &amp;quot;19/07/19,19:57:58+08&amp;quot; OK 
 // current local time is: 21:59 now 
 thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Nov 2019 14:31:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50048/nrf9160-at-cclk-time-difference-2hours" /><item><title>RE: nRF9160 &gt; AT+CCLK time difference 2hours</title><link>https://devzone.nordicsemi.com/thread/218864?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 14:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb37afc-8604-4220-b0a1-340646569b5c</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I have cloned the head from git (2019-11-04), made a sample app, but the AT CMD = AT+CCLK does not return the date-time.&lt;/p&gt;
&lt;p&gt;Nor it returns from the at-client.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Am I missing something?&lt;/p&gt;
&lt;p&gt;Here is the log:&lt;/p&gt;
&lt;p&gt;app__modem_init_and_connect [614] &amp;gt; LTE connection time: 149571.&lt;br /&gt;app__post_init_checkpoint [798] &amp;gt; enter&lt;br /&gt;app__post_init_checkpoint [805] &amp;gt; FOTA succeeded. Boot image is confirmed!&lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT%XCBAND=?&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT%XCBAND=? &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CGDCONT?&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CGDCONT? &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+COPS?&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+COPS? &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CEREG?&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CEREG? &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CEREG?&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CEREG? &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CCLK?&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CCLK? &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CRSM=176,12258,0,0,10&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CRSM=176,12258,0,0,10 &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CIMI&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CIMI &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CGMR&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CGMR &lt;br /&gt;modem_info_string_get [445] &amp;gt; at cmd: AT+CGSN&lt;br /&gt;modem_info_string_get [463] &amp;gt; parsed at cmd: AT+CGSN &lt;br /&gt;app__handler__device_status_send [465] &amp;gt;&lt;/p&gt;
&lt;p&gt;board: nrf9160_innblue21 app_version: v1.1.0-rc1-28-g32667fe8c36b app_name: innblue_test&lt;br /&gt; modem fw: mfw_nrf9160_1.0.1 modem battery: 3344&lt;br /&gt; current band: 8 operator: 26201 cell id: 537002327 mcc: 262 mnc: 1 area_code 54050&lt;br /&gt; IP: 100.113.84.3&lt;br /&gt; current time: 15/02/01,00:02:32&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and AT-CLient:&lt;/p&gt;
&lt;p&gt;AT+CCLK&lt;br /&gt;[00:05:55.637,115] [1B][1;31m&amp;lt;err&amp;gt; at_host: Error while processing AT command: -8[1B][0m&lt;br /&gt;ERROR&lt;br /&gt;AT+CCLK?&lt;br /&gt;+CCLK: &amp;quot;15/02/01,00:05:58&amp;quot;&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 &gt; AT+CCLK time difference 2hours</title><link>https://devzone.nordicsemi.com/thread/218350?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 18:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d02e91e-68c2-4713-9fcd-f9c55d531f1f</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;I knew that! :) you guys simply rock!! :) &lt;/p&gt;
&lt;p&gt;thank you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 &gt; AT+CCLK time difference 2hours</title><link>https://devzone.nordicsemi.com/thread/218349?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 17:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6787e26-4c5e-4893-8516-d43218102d95</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You can use the modem_info library to get the time, as well as other information from the modem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 &gt; AT+CCLK time difference 2hours</title><link>https://devzone.nordicsemi.com/thread/217997?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 15:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa68b1e-e250-4ec0-aa0d-a5dc2e4de918</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;is there any nrf API (or planed) to retrieve this info?&lt;/p&gt;
&lt;p&gt;thank you!&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Oleh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 &gt; AT+CCLK time difference 2hours</title><link>https://devzone.nordicsemi.com/thread/199663?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 07:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766084ef-c2ce-41ee-bb19-156a20af030d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcclk_read.html"&gt;AT+CCLK?&lt;/a&gt; returns GMT time, and the difference to local time in quarters of an hour.&lt;/p&gt;
&lt;p&gt;If you divide your difference (8) by 4 you get 2 hours.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>