<?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>question Re: Issue with Time Shift During Data Migration from MSSQL to PostgreSQL Using NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-Time-Shift-During-Data-Migration-from-MSSQL-to/m-p/403944#M252243</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106156"&gt;@Ytch&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you try this solution that has been accepted in this forum&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Change-Timezone-in-Nifi/m-p/117129/highlight/true#M79916" target="_self"&gt;MSSQL to PostgreSQL&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;happy hadooping&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 23:16:33 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2025-03-11T23:16:33Z</dc:date>
    <item>
      <title>Issue with Time Shift During Data Migration from MSSQL to PostgreSQL Using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-Time-Shift-During-Data-Migration-from-MSSQL-to/m-p/392345#M248089</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am currently migrating data from MSSQL to PostgreSQL. While fetching the data from MSSQL, I use the following query to ensure the time is in UTC:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT "time column" AT TIME ZONE 'UTC' AS "time column"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;This gives me the correct result in UTC. However, when I ingest the data into PostgreSQL using NiFi's &lt;/SPAN&gt;PutDatabase&lt;SPAN&gt;processor, I notice that the time is being increased by 5 hours. The destination column in PostgreSQL is of type &lt;/SPAN&gt;timestamp with time zone&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when I manually run an INSERT command in PostgreSQL with the same time value, the time remains unchanged. The time shift only occurs during the NiFi ingestion process. Any ideas on what could be causing this discrepancy?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 11:03:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-Time-Shift-During-Data-Migration-from-MSSQL-to/m-p/392345#M248089</guid>
      <dc:creator>Ytch</dc:creator>
      <dc:date>2024-08-22T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Time Shift During Data Migration from MSSQL to PostgreSQL Using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-Time-Shift-During-Data-Migration-from-MSSQL-to/m-p/403944#M252243</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106156"&gt;@Ytch&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you try this solution that has been accepted in this forum&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Change-Timezone-in-Nifi/m-p/117129/highlight/true#M79916" target="_self"&gt;MSSQL to PostgreSQL&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;happy hadooping&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 23:16:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-Time-Shift-During-Data-Migration-from-MSSQL-to/m-p/403944#M252243</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2025-03-11T23:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Time Shift During Data Migration from MSSQL to PostgreSQL Using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-Time-Shift-During-Data-Migration-from-MSSQL-to/m-p/404323#M252307</link>
      <description>&lt;P&gt;The issue may be due to NiFi's PutDatabaseProcessor applying a local time zone conversion during data ingestion, causing the 5-hour shift. To fix this, ensure NiFi is explicitly set to handle UTC time zones for both reading and writing. Additionally, using &lt;A href="https://www.devart.com/odbc/postgresql/" target="_self"&gt;ODBC for PostgreSQL&lt;/A&gt; could help by providing better control over time zone handling during the data transfer, ensuring consistency between MSSQL and PostgreSQL.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 14:47:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-Time-Shift-During-Data-Migration-from-MSSQL-to/m-p/404323#M252307</guid>
      <dc:creator>TimL</dc:creator>
      <dc:date>2025-03-18T14:47:28Z</dc:date>
    </item>
  </channel>
</rss>

