<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change date from UTC to EST in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125776#M7569</link>
    <description>&lt;P&gt;Using a hardcoded offset (-4 hours for EDT) is 100% the correct answers to the question asked.&lt;/P&gt;
&lt;P&gt;However, the question asked is probably not the one intended.&lt;/P&gt;
&lt;P&gt;It will be a problem with summertime/wintertime.&lt;/P&gt;
&lt;P&gt;If the desired time zone (EDT) is in fact the local time zone then it is better to use:&amp;nbsp;&amp;nbsp;DATETIME('now', 'localtime')&lt;/P&gt;
&lt;P&gt;See also :&amp;nbsp;&lt;A href="https://www.sqlite.org/lang_datefunc.html" target="_blank" rel="noopener"&gt;https://www.sqlite.org/lang_datefunc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 19:17:28 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2023-10-05T19:17:28Z</dc:date>
    <item>
      <title>Change date from UTC to EST</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125756#M7567</link>
      <description>&lt;P&gt;We have a column CHG_DT in global transformations which is populating UTC time and we want it to be EST. Can you please help me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 17:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125756#M7567</guid>
      <dc:creator>kamal0475</dc:creator>
      <dc:date>2023-10-05T17:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change date from UTC to EST</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125759#M7568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152267"&gt;@kamal0475&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a date function to add or subtract the correct amount of hours to adjust it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATE($MyDate, '-4 hour')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 18:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125759#M7568</guid>
      <dc:creator>Michael_Litz</dc:creator>
      <dc:date>2023-10-05T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change date from UTC to EST</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125776#M7569</link>
      <description>&lt;P&gt;Using a hardcoded offset (-4 hours for EDT) is 100% the correct answers to the question asked.&lt;/P&gt;
&lt;P&gt;However, the question asked is probably not the one intended.&lt;/P&gt;
&lt;P&gt;It will be a problem with summertime/wintertime.&lt;/P&gt;
&lt;P&gt;If the desired time zone (EDT) is in fact the local time zone then it is better to use:&amp;nbsp;&amp;nbsp;DATETIME('now', 'localtime')&lt;/P&gt;
&lt;P&gt;See also :&amp;nbsp;&lt;A href="https://www.sqlite.org/lang_datefunc.html" target="_blank" rel="noopener"&gt;https://www.sqlite.org/lang_datefunc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 19:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125776#M7569</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-10-05T19:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change date from UTC to EST</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125791#M7570</link>
      <description>&lt;P&gt;Thank you both for your great response. Michael, yes your datetime works but as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;mentioned we will have to look into the summertime/wintertime condition. And&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;DATETIME('now', 'localtime') is giving UTC as the source is in UTC I think. If you have any other option please provide, else we will discuss internally and get back to you. Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 19:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125791#M7570</guid>
      <dc:creator>kamal0475</dc:creator>
      <dc:date>2023-10-05T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change date from UTC to EST</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125809#M7571</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;DATETIME('now', 'localtime') is giving UTC as the source is in UTC I think.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't think. That's too hard. Just try!&lt;/P&gt;
&lt;P&gt;The input is assumed UTC and the modifier 'localtime' modifies it to ... the time in the local time zone.&lt;/P&gt;
&lt;P&gt;Now if the local time zone (for the Replicate Server. Not _your_ local time) is not EDT but for example is westcoast PDT and has the same summertime rules as EDT then you should still use 'localtime' and further modify to add or subtract the fixed differential hour ( +3 for a server in the PDT )&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 03:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Change-date-from-UTC-to-EST/m-p/2125809#M7571</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-10-06T03:43:03Z</dc:date>
    </item>
  </channel>
</rss>

