<?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: Replicate automatically adding one hour to the timestamp in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Replicate-automatically-adding-one-hour-to-the-timestamp/m-p/2489330#M13062</link>
    <description>&lt;P&gt;Hi Dana,&lt;/P&gt;
&lt;P&gt;Thanks, we've already tried this but it looks like it's the nature of the actual datatype that displays a different time depending on the timezone of the Oracle session used to query the table.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mohammed&lt;/P&gt;</description>
    <pubDate>Sun, 27 Oct 2024 22:20:19 GMT</pubDate>
    <dc:creator>MoeE</dc:creator>
    <dc:date>2024-10-27T22:20:19Z</dc:date>
    <item>
      <title>Replicate automatically adding one hour to the timestamp</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replicate-automatically-adding-one-hour-to-the-timestamp/m-p/2488328#M13020</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;A client pointed out an issue where Qlik Replicate adds one hour to the timestamp when the source column is of the type TIMESTAMP WITH LOCAL TIMEZONE. From what we've seen, only records with timestamps from outside the Daylight savings period have one hour added to them, while records from within the Daylight savings time period are correctly replicated in the target.&lt;/P&gt;
&lt;P&gt;Their source endpoint is Oracle and target was ADLS, but I was able to recreate this issue going from Oracle to SQL Server. I believe now that Qlik Replicate adds one hour. This is because the datatype mapping from Oracle is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoeyE_0-1729575165734.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173236iCBCB2E7D0FC5A2B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MoeyE_0-1729575165734.png" alt="MoeyE_0-1729575165734.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Therefore, Replicate must be adding one hour so that the time appears in Daylight savings time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to make it so that the timestamp in the target and source are exactly the same? I think the issue here lies with the fact that their source data doesn't actually have the timezone attached to the record.&lt;/P&gt;
&lt;P&gt;This is my create table statement:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CREATE TABLE "C##NORTHWIND"."BIRDS_WITH_TIMESTAMP" 
(
    "BIRD_ID" VARCHAR2(2 BYTE) NOT NULL, 
    "BIRD_NAME" VARCHAR2(50 BYTE) NOT NULL, 
    "HABITAT" VARCHAR2(50 BYTE), 
    "LIFESPAN" NUMBER(38,10), 
    "LENGTH" NUMBER(38,10), 
    "WEIGHT" NUMBER(38,10), 
    "AGE" NUMBER(38,10), 
    "REC_COMMIT_TIME" VARCHAR2(50 BYTE), 
    "REC_INS_TIME" VARCHAR2(50 BYTE), 
    "IssueTimestampColumn" TIMESTAMP WITH LOCAL TIME ZONE,  -- Store as TIMESTAMP with local timezone
    CONSTRAINT "BIRDS_WITH_TIMESTAMP_PK" PRIMARY KEY ("BIRD_ID", "BIRD_NAME")
);
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added supplemental logging to the table then added these records:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;INSERT INTO "C##NORTHWIND"."BIRDS_WITH_TIMESTAMP" 
("BIRD_ID", "BIRD_NAME", "HABITAT", "LIFESPAN", "LENGTH", "WEIGHT", "AGE", "REC_COMMIT_TIME", "REC_INS_TIME", "IssueTimestampColumn") 
VALUES 
('1', 'Sparrow', 'Urban', 3, 15.0, 0.025, 1, '2024-10-22 10:00:00', '2024-10-22 10:00:00', TO_TIMESTAMP('15/MAY/24 08:00:00.000000000 AM', 'DD/MON/YY HH12:MI:SS.FF AM'));

INSERT INTO "C##NORTHWIND"."BIRDS_WITH_TIMESTAMP" 
("BIRD_ID", "BIRD_NAME", "HABITAT", "LIFESPAN", "LENGTH", "WEIGHT", "AGE", "REC_COMMIT_TIME", "REC_INS_TIME", "IssueTimestampColumn") 
VALUES 
('2', 'Robin', 'Forests', 2, 20.0, 0.075, 1, '2024-10-22 10:00:00', '2024-10-22 10:00:00', TO_TIMESTAMP('15/DEC/24 08:00:00.000000000 AM', 'DD/MON/YY HH12:MI:SS.FF AM'));
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The column you should focus on is called "IssueTimestampColumn". One record is inside the daylight savings period, while the other is not. This is what the source data looks like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoeyE_1-1729576523364.png" style="width: 547px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173237iDFF14D660D8A400F/image-dimensions/547x107?v=v2" width="547" height="107" role="button" title="MoeyE_1-1729576523364.png" alt="MoeyE_1-1729576523364.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and this is what it looks like on the target (SQL Server):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoeyE_2-1729576561126.png" style="width: 520px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173238i652070C4B47A8B73/image-dimensions/520x137?v=v2" width="520" height="137" role="button" title="MoeyE_2-1729576561126.png" alt="MoeyE_2-1729576561126.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Notice that the time for the row outside the daylight savings time has one hour added to it.&lt;/P&gt;
&lt;P&gt;Any ideas as to how this could be fixed? Help with this is appreciated, thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mohammed&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 05:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replicate-automatically-adding-one-hour-to-the-timestamp/m-p/2488328#M13020</guid>
      <dc:creator>MoeE</dc:creator>
      <dc:date>2024-10-22T05:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate automatically adding one hour to the timestamp</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replicate-automatically-adding-one-hour-to-the-timestamp/m-p/2489235#M13060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/214271"&gt;@MoeE&lt;/a&gt;&amp;nbsp;Please stop and resume the task. Refer to:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/replicate/May2024/Content/Global_Common/Content/SharedEMReplicate/DST%20Change/dst_impact.htm" target="_blank"&gt;Impact of DST change on Qlik Replicate | Qlik Replicate Help&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 19:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replicate-automatically-adding-one-hour-to-the-timestamp/m-p/2489235#M13060</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2024-10-25T19:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate automatically adding one hour to the timestamp</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replicate-automatically-adding-one-hour-to-the-timestamp/m-p/2489330#M13062</link>
      <description>&lt;P&gt;Hi Dana,&lt;/P&gt;
&lt;P&gt;Thanks, we've already tried this but it looks like it's the nature of the actual datatype that displays a different time depending on the timezone of the Oracle session used to query the table.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mohammed&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 22:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replicate-automatically-adding-one-hour-to-the-timestamp/m-p/2489330#M13062</guid>
      <dc:creator>MoeE</dc:creator>
      <dc:date>2024-10-27T22:20:19Z</dc:date>
    </item>
  </channel>
</rss>

