<?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: Date offset issue while writing to postgresql in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283341#M57278</link>
    <description>tornilleiro,&lt;BR /&gt;&lt;BR /&gt;Wow, this worked like a charm. Thank you. It solves the problem. But I have the below questions. Please let me know your thoughts.&lt;BR /&gt;1) We have many Talend jobs, but only this job has an issue. All the settings in this job is an exact replica of other jobs.&lt;BR /&gt;2) Many date columns are being read in this job from the hive table. Only some columns have the date offset issue. All the date target fields are of timestamp without timezone type.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sreekanth</description>
    <pubDate>Wed, 03 Jun 2020 08:40:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-03T08:40:41Z</dc:date>
    <item>
      <title>Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283335#M57272</link>
      <description>Hi, I have a talend standard job which I am using to read few records from hive and write them to postgresql. But while writing all my dates are getting offset my 8 hours.
&lt;BR /&gt;
&lt;BR /&gt;Original date: 2020-05-29 00:00:00
&lt;BR /&gt;Date in postgresql: 2020 -05-28 16:00:00
&lt;BR /&gt;I have kept a tlogrow just before the target write in which the date is coming correctly without any offset.
&lt;BR /&gt;The hive server is in MYT ( Malaysia time zone) and postgresql which is aws rds is in UTC. Kindly let me know on any possible solutions.</description>
      <pubDate>Sat, 16 Nov 2024 02:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283335#M57272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283336#M57273</link>
      <description>&lt;P&gt;It is normal as it is same time in different timezone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is your expected output?&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 12:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283336#M57273</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-05-29T12:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283337#M57274</link>
      <description>Hi Abhiskek thank you for the reply.&lt;BR /&gt;The expectation is to write the date as it is without doing any offset. Is it normal for talend to do automatic offsetting here.</description>
      <pubDate>Fri, 29 May 2020 13:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283337#M57274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-29T13:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283338#M57275</link>
      <description>&lt;P&gt;Yes , actually it is normal.below time is same , but in different timezone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Original date: 2020-05-29 00:00:00&amp;nbsp;MYT&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;final : 2020 -05-28 16:00:00 UTC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I assume that you are running your job in MYT timezone machine. If you change it to UTC , you will get same time. or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;you need to add offset(+8) hours to input datetime.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 13:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283338#M57275</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-05-29T13:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283339#M57276</link>
      <description>Yes our talend job servers are in MYT. Will try out this idea.</description>
      <pubDate>Fri, 29 May 2020 13:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283339#M57276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-29T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283340#M57277</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Dear sreevik,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can add the following setting directly in advanced settings to set the UTC time.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend_settings.png" style="width: 525px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaL2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152259i438F92226B023A64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaL2.png" alt="0683p000009MaL2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 01:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283340#M57277</guid>
      <dc:creator>tornilleiro</dc:creator>
      <dc:date>2020-05-30T01:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283341#M57278</link>
      <description>tornilleiro,&lt;BR /&gt;&lt;BR /&gt;Wow, this worked like a charm. Thank you. It solves the problem. But I have the below questions. Please let me know your thoughts.&lt;BR /&gt;1) We have many Talend jobs, but only this job has an issue. All the settings in this job is an exact replica of other jobs.&lt;BR /&gt;2) Many date columns are being read in this job from the hive table. Only some columns have the date offset issue. All the date target fields are of timestamp without timezone type.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sreekanth</description>
      <pubDate>Wed, 03 Jun 2020 08:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283341#M57278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-03T08:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date offset issue while writing to postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283342#M57279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Sreekanth&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the 1) I am assuming that the other jobs that you are executing they are created in the same Talend and they are executed to load the same Postgresql. Is the date field parsed or transformed during the data flow?. Many elements can make the difference, difficult please see what I going to describe now, may be it helps you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding 2) and in general. Working with dates in Talend and in general with any tool when several timezones are involved is tricky. You have to have clear in which timezone is working the origin, in which timezone are working the libraries of your jobs and to which timezone you want to populate.&amp;nbsp; Sometimes also some SQL clients try to use your local setting to show the time values according to your regional values.Then, the&amp;nbsp; value that you see in the screen using your client is different than what is stored :-).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To figure out what is happening I normally use, during development phase,&amp;nbsp; the Talend function&amp;nbsp; TalendDateformat(&amp;lt;date&amp;gt;,"yyyy-MM-dd HH:mm:ssZ") to see as string the date that I am retrieving. This give you clues about the timezone and what your JVM is interpreting.&amp;nbsp; You can make a test inserting on your destination or in your origin DB&amp;nbsp; the value of the string and the proper time format in a dummy table. Later,&amp;nbsp; you can compare&amp;nbsp; in client side the string value and the time value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know a general rule. I hope it helps!. Enjoy playing with dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 21:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-offset-issue-while-writing-to-postgresql/m-p/2283342#M57279</guid>
      <dc:creator>tornilleiro</dc:creator>
      <dc:date>2020-06-03T21:51:36Z</dc:date>
    </item>
  </channel>
</rss>

