<?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: [resolved] TalendDate.parseDate is adding 1 extra hour on DST start times in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317669#M88092</link>
    <description>&lt;P&gt;Solution no 2 works perfectly fine!!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 10:05:55 GMT</pubDate>
    <dc:creator>sushantk19</dc:creator>
    <dc:date>2020-04-17T10:05:55Z</dc:date>
    <item>
      <title>[resolved] TalendDate.parseDate is adding 1 extra hour on DST start times</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317664#M88087</link>
      <description>I think when you attempt to convert a string date timestamp using TalendDate.parseDate 1 extra hour is being added to DST start times. 
&lt;BR /&gt;The conversion works correctly for DST end times. 
&lt;BR /&gt;My job looks like: 
&lt;BR /&gt; 
&lt;B&gt;tFileInputExcel &lt;/B&gt;&amp;gt; 
&lt;B&gt;tMap &lt;/B&gt;&amp;gt; 
&lt;B&gt;LogRow&lt;/B&gt; 
&lt;BR /&gt;On tFileInputExcel column DST_START is a 
&lt;B&gt;String &lt;/B&gt;data type. 
&lt;BR /&gt;On 
&lt;B&gt;tMap &lt;/B&gt;column DST_START is Date. 
&lt;BR /&gt; 
&lt;B&gt;TalendDate.parseDate&lt;/B&gt;("yyyy-MM-dd HH:mm:ss",row1.DST_START) 
&lt;BR /&gt;In my Excel I put the following: 
&lt;BR /&gt; 
&lt;I&gt;DST_START&lt;BR /&gt; 2000-04-02 02:00:00&lt;BR /&gt; 2001-04-01 02:00:00&lt;BR /&gt; 2002-04-07 02:00:00&lt;BR /&gt; 2003-04-06 02:00:00&lt;BR /&gt; 2004-04-04 02:00:00&lt;BR /&gt; 2005-04-03 02:00:00&lt;BR /&gt; 2006-04-02 02:00:00&lt;BR /&gt; 2007-03-11 02:00:00&lt;BR /&gt; 2008-03-09 02:00:00&lt;BR /&gt; 2009-03-08 02:00:00&lt;BR /&gt; 2010-03-14 02:00:00&lt;BR /&gt; 2011-03-13 02:00:00&lt;BR /&gt; 2012-03-11 02:00:00&lt;BR /&gt; 2013-03-10 02:00:00&lt;BR /&gt; 2014-03-09 02:00:00&lt;BR /&gt; 2015-03-08 02:00:00&lt;/I&gt; 
&lt;BR /&gt;I opened a bug: 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/browse/TDI-30367" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-30367&lt;/A&gt;</description>
      <pubDate>Tue, 19 Aug 2014 22:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317664#M88087</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-08-19T22:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TalendDate.parseDate is adding 1 extra hour on DST start times</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317665#M88088</link>
      <description>Hi talendtester 
&lt;BR /&gt; 
&lt;BR /&gt;Our developers are working on this issue, he suggests two solutions: 
&lt;BR /&gt;Solution 1? 
&lt;BR /&gt;Add two tJava components: 
&lt;BR /&gt;tJava_1 ---onsubjobok---&amp;gt;---onsubjobok---&amp;gt;tJava_2 
&lt;BR /&gt;tJava_1 add java code: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;globalMap.put("defaultTimeZone", java.util.TimeZone.getDefault().clone());&lt;BR /&gt;java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("UTC"));&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;tJava_1(Set back the default timezone as before our last modification) 
&lt;BR /&gt;//Set back 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;java.util.TimeZone.setDefault((java.util.TimeZone)globalMap.get("defaultTimeZone"));&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Solution 2? 
&lt;BR /&gt;Click "Run Job"&amp;gt; Advanced setting&amp;gt; check "Use specific JVM arguments"&amp;gt; then Add a JVM argument: 
&lt;BR /&gt;-Duser.timezone=UTC 
&lt;BR /&gt;Please let us know if it could fix your problem? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 09 Sep 2014 09:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317665#M88088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-09T09:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TalendDate.parseDate is adding 1 extra hour on DST start times</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317666#M88089</link>
      <description>Both work succesfully. 
&lt;B&gt;Solution 2&lt;/B&gt; seems to be the least amount of work. 
&lt;BR /&gt;In future versions, is selecting the time zone going to be a 
&lt;B&gt;preferences &lt;/B&gt;option?</description>
      <pubDate>Tue, 09 Sep 2014 17:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317666#M88089</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-09-09T17:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TalendDate.parseDate is adding 1 extra hour on DST start times</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317667#M88090</link>
      <description>Yes, we have created a jira issue for this request. 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/browse/TDI-30556" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-30556&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 11 Sep 2014 08:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317667#M88090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-11T08:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TalendDate.parseDate is adding 1 extra hour on DST start times</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317668#M88091</link>
      <description>Hi Team,&lt;BR /&gt;This issue still persists, please let me know if any work around is available. I tried both the above mentioned workaround but no luck.&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Sanket</description>
      <pubDate>Fri, 10 Jun 2016 11:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317668#M88091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-10T11:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TalendDate.parseDate is adding 1 extra hour on DST start times</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317669#M88092</link>
      <description>&lt;P&gt;Solution no 2 works perfectly fine!!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 10:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TalendDate-parseDate-is-adding-1-extra-hour-on-DST/m-p/2317669#M88092</guid>
      <dc:creator>sushantk19</dc:creator>
      <dc:date>2020-04-17T10:05:55Z</dc:date>
    </item>
  </channel>
</rss>

