<?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>Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90191/getting-time-zone-and-daylight-savings-info-out-of-cts</link><description>I&amp;#39;m currently getting the CTS info out of my iPhone and storing it in my RTC, that talks with my nRF52832 via I2C. All seems to work. 
 But my Dev Team are now wanting the time in UTC, which means I also need Time Zone and Daylight Savings Time info.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 15 Jan 2023 23:21:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90191/getting-time-zone-and-daylight-savings-info-out-of-cts" /><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/404909?ContentTypeID=1</link><pubDate>Sun, 15 Jan 2023 23:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8c7672b-f4a1-4ad2-a5bd-f43593943bef</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Steven,&lt;/p&gt;
&lt;p&gt;Have a look on my repo here:&amp;nbsp;&lt;a id="" href="https://github.com/maustin-redant/local_time_info"&gt;https://github.com/maustin-redant/local_time_info&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That has patch files that will update your version of NCS with the API&amp;#39;s you need to access the local time info.&lt;/p&gt;
&lt;p&gt;If you need further details on the call backs, etc I wrote to actually get the info I wanted, let me know&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/404905?ContentTypeID=1</link><pubDate>Sun, 15 Jan 2023 15:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0fa7c4a-3b54-435f-9646-d1e37657efc0</guid><dc:creator>setenv</dc:creator><description>&lt;p&gt;Hi Mike, I am facing the same issue and it looks like your way to solve it makes most sense to get the DST out. Is there a way you could share some of this code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regarsd,&lt;/p&gt;
&lt;p&gt;Steven&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/380023?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 05:44:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d368478d-6770-480d-adda-8aa978395a18</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for that - very helpful :-)&lt;/p&gt;
&lt;p&gt;OK, I *think* I&amp;#39;ve got it all working.&amp;nbsp; I had to hack about with the cts_client.c and cts_client.h files in the nrf folder, which of course means if I ever update my SDK all that gets wiped.&amp;nbsp; So, at some point, I might attempt to push those changes up to GitHub for them to be checked over and potentially added to the SDK in a future release.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve done all my testing using the nRF Connect For Desktop App, and used the setup from the peripheral_cts_client example.&amp;nbsp; I then added a Local Time characteristic, so I could change the time zone and dst figures and confirm these are being captured by my client device - which they are.&lt;/p&gt;
&lt;p&gt;From my read of the spec, the Local Time info doesn&amp;#39;t have notify capabilities.&amp;nbsp; I believe that is all bundled up in the Current Time info, under the bt_cts_adjust_reason structure.&amp;nbsp; If timezone or dst status changes, these are notified via the Current Time notification, and then I guess its up to the client to decide if it needs to grab and update the Local Time characteristic info.&lt;/p&gt;
&lt;p&gt;Thanks for you help on this.&amp;nbsp; I think we can mark this one as &amp;quot;solved&amp;quot; now&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/379386?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 23:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ddebe02-6e7f-4a0e-9f91-aa28845057db</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;You are right, similar to the nRF5 SDK, the nRF Connect SDK has not implemented capablitiy to read the Local Time Information Characteristic (&lt;span&gt;LTIC&lt;/span&gt;). Like Terje explains here&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65357/mktime-in-nordic-calendar-example-is-not-taking-local-time-into-account"&gt;mktime() in nordic calendar example is not taking local time into account?&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems like your thinking is correct, regarding how to read the&amp;nbsp;&lt;span&gt;LTIC.&amp;nbsp;Let me go through what I think needs to be done&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I think you&amp;#39;ll need to do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1. Define the LTIC UUID&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do it similar to how it&amp;#39;s done for the Current Time Characteristic (CTC):&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/include/zephyr/bluetooth/uuid.h#L864-L872"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/include/zephyr/bluetooth/uuid.h#L864-L872&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Call it&amp;nbsp;&lt;span&gt;BT_UUID_CTS_LOCAL_TIME_INFORMATION and use the UUID&amp;nbsp;&lt;span&gt;0x2A0F (I&amp;nbsp;got this value from&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html?cp=8_1_6_3_38_1_46#gaff5bf5d1a58b7ab49de3610103b99a0c"&gt; the nRF5 SDK documentation&lt;/a&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;2. Modify the bt_cts_client struct&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Add a handle for the LTIC similar for how it&amp;#39;s done for the CTC:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/include/bluetooth/services/cts_client.h#L82-L83"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/include/bluetooth/services/cts_client.h#L82-L83&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can call the LTIC handle field handle_lti&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if the LTIC has notify-capabilities, in that case add a &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/include/bluetooth/services/cts_client.h#L86"&gt;CCCD handle&lt;/a&gt; as well.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;3. Assign the handle&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the function&amp;nbsp;bt_cts_handles_assign(), &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/subsys/bluetooth/services/cts_client.c#L68-L78"&gt;copy these lines&lt;/a&gt;&amp;nbsp;and do the same thing for the LTIC. You will end up with assigning the LTIC handle to&amp;nbsp;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;handle_lti. If the LTIC has notify-capablities, copy &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/subsys/bluetooth/services/cts_client.c#L80-L84"&gt;these lines&lt;/a&gt; as well and modify them accordingly.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;4. Create a function&amp;nbsp;bt_cts_read_local_time()&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Copy the function &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/subsys/bluetooth/services/cts_client.c#L231-L258"&gt;bt_cts_read_current_time()&lt;/a&gt;&amp;nbsp;and modify it to use the LTIC handle instead.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the LTIC has notify-capabilities, copy the function&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.2/subsys/bluetooth/services/cts_client.c#L293"&gt;bt_cts_subscribe_current_time()&lt;/a&gt; as well and modify it accordingly.&lt;/p&gt;
&lt;p&gt;Also you should check if the iPhone&amp;nbsp;you&amp;#39;re getting the CTS info from actually has the LTIC characteristics, if not you will not be able to read it.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Be aware that I have not tested this myself, and I might have forgotten something. I just looked quickly into it and wrote down how I understood it before I now take vacation for two weeks.&lt;/p&gt;
&lt;p&gt;I will make sure someone else takes over and watches this case, in case you got any follow-up questions.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/378804?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 04:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf35863-6536-446c-af22-bcf9ded66c05</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Still struggling with this (getting the Local Time info out of the CTS).&lt;/p&gt;
&lt;p&gt;From the looks of the nRF5 SDK code, the process to get the Current Time info out of the CTS involves:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; A call to&amp;nbsp;err&amp;nbsp;=&amp;nbsp;bt_cts_read_current_time(&amp;amp;cts_c, &lt;span&gt;func)&lt;/span&gt;;&amp;nbsp;&amp;nbsp;Here, the func is the callback function that you can define, and that is called when the read operation is completed&lt;/p&gt;
&lt;p&gt;2. The&amp;nbsp;&lt;span&gt;bt_cts_read_current_time&lt;/span&gt;&amp;nbsp;call then sets up a bunch of parameters, via:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;read_cb&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;func&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;read_params&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;func&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;bt_cts_read_callback&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;read_params&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;handle_count&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;read_params&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;single&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;handle&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;handle_ct&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;read_params&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;single&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Not sure what this is all doing, but I&amp;#39;m guessing its setting things up so that the GATT read that comes next knows what characteristic it needs to access.&amp;nbsp; The bt_cts_read_callback function listed amongst all of this seems to do a bunch of data decoding, and validation, and I&amp;#39;m guessing this gets called once the next step below has been implemented.&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; It then makes a call to&amp;nbsp;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;bt_gatt_read&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;, &amp;amp;&lt;/span&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;read_params&lt;/span&gt;&lt;span&gt;);&amp;nbsp;&lt;/span&gt;which looks to be Nordics general GATT read API&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m trying to do is work out what I need to add to my code, along the lines of the above, to enable me to access the Local Time info.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m thinking I need to define my own bt_cts_read_local_time() API (to emulate the &lt;span&gt;bt_cts_read_current_time&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;cts_c&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;func) one from Nordic)&lt;/span&gt;, and then set up the parameters listed above to access the Local Time info characteristic, and include my own version of the bt_cts_read_callback API, which will no doubt need my own data decoding and data validation API&amp;#39;s.&amp;nbsp; I can then just make the same call to bt_gatt_read and I &amp;quot;should&amp;quot; now have the Local Time info.&lt;/p&gt;
&lt;p&gt;Does that sound right to you?&lt;/p&gt;
&lt;p&gt;Seems weird that Nordic wouldn&amp;#39;t have done the heavy lifting and write a bunch of API&amp;#39;s to extract the Local Time info as well as the Current Time info, but c&amp;#39;est la vie!&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/378418?ContentTypeID=1</link><pubDate>Sun, 24 Jul 2022 09:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e879c1-24ee-43cb-b86d-886d57325bd3</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Yep, happy to close off &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90183/converting-local-time-from-cts-to-utc-time"&gt;Converting local time from CTS to UTC time&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Still not sure how to get the Time Zone and DST info out of the CTS though&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/378255?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 10:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb06fee0-c453-4e94-b90c-e2205936793b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It seems like you found a solution in&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90183/converting-local-time-from-cts-to-utc-time"&gt;Converting local time from CTS to UTC time&lt;/a&gt;. Should we close this one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/378049?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 10:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20dbc884-c43e-4b28-999a-d1f7956d4098</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>[quote userid="72692" url="~/f/nordic-q-a/90191/getting-time-zone-and-daylight-savings-info-out-of-cts/378037"]Next, you would then need to include the &lt;strong&gt;Local Time Information characterstic&lt;/strong&gt;, and use that to get the &lt;strong&gt;Time zone field&lt;/strong&gt; and the &lt;strong&gt;DST offset field&lt;/strong&gt;.&amp;nbsp;[/quote]
&lt;p&gt;That&amp;#39;s the issue.&amp;nbsp; The Nordic API&amp;#39;s only extract the Current Time characteristic, and don&amp;#39;t include the Local Time characteristic.&amp;nbsp; And I can&amp;#39;t work out how I can get that info myself.&lt;/p&gt;
&lt;p&gt;My code that extracts the Current Time characteristic is based on that Peripheral CTS Client example.&lt;/p&gt;
&lt;p&gt;I &amp;quot;think&amp;quot; all I need to do is read a Gatt characteristic, and use the Local Time characteristic handle to reference that, but I&amp;#39;m floundering around trying to work out how to do that.&lt;/p&gt;
&lt;p&gt;BTW - think I&amp;#39;ve nailed the Local-&amp;gt;UTC conversion thing myself.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/378037?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 10:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd6b161b-4951-40a2-8bbe-ea5ecbe55f61</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I looked into this.&lt;/p&gt;
&lt;p&gt;Looking at this document:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=292957"&gt;Current Time Service&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I see that the CTS Service can contain both a &lt;strong&gt;Current Time characterstic&lt;/strong&gt; and a &lt;strong&gt;Local Time information characterstic&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;Current Time characteristic&lt;/strong&gt; contains the time local time, adjusted for DST and time zone. See 3.1.1 in the attached document:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;The date and time values returned shall be the local date and time of the server device (the time the server device would display to the user, which is normally the correct time for the location adjusted for time zone and DST).&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Next, you would then need to include the &lt;strong&gt;Local Time Information characterstic&lt;/strong&gt;, and use that to get the &lt;strong&gt;Time zone field&lt;/strong&gt; and the &lt;strong&gt;DST offset field&lt;/strong&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you can get the UTC time by subtracting the &lt;strong&gt;DST offset field&lt;/strong&gt; and &lt;strong&gt;Time zone field&lt;/strong&gt; from the current local time you got from t&lt;span&gt;he&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Current Time characteristic&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not gone into the speficics of how to do this,&amp;nbsp;but try to check out the Peripheral CTS client sample, it demonstrates how to get all these fields: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_cts_client/README.html#:~:text=that%20was%20input%3A-,Current%20Time%3A%0A%0ADate%3A%0A%20%20%20%20Day,0%0A%20%20%20%20Manual%20update%20%20%20%200,-Disconnect%20the%20device"&gt;Peripheral CTS Client&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting Time Zone and Daylight Savings info out of CTS</title><link>https://devzone.nordicsemi.com/thread/378029?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 09:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e398cf16-27fa-4e5f-bfef-3dfc394e0a6a</guid><dc:creator>Simon</dc:creator><description>[quote user="Mike Austin (LPI)"]&lt;p&gt;Yep, happy to bundle the two issues together.&lt;/p&gt;
&lt;p&gt;I just thought that someone might have done the heavy lifting on the UTC conversion before.&lt;/p&gt;[/quote]
&lt;p&gt;^Quote from&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90183/converting-local-time-from-cts-to-utc-time"&gt;Converting local time from CTS to UTC time&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yeah I would think so myself, but I tried to search through the entire database and all I found was this ticket (nRF5 SDK):&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65357/mktime-in-nordic-calendar-example-is-not-taking-local-time-into-account"&gt;mktime() in nordic calendar example is not taking local time into account?&lt;/a&gt;, not sure if that will be of much help.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll investigate myself and see if I can figure out how to go about this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>