<?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] Set TimeZone in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321081#M91156</link>
    <description>Pl check this post, you will get idea 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCr1sCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Adding-the-local-Date-Time-without-Time-Zone/td-p/112900&lt;/A&gt; 
&lt;BR /&gt;If you are sure that you want to convert it to timezone is UTC, then why not to just add -5.30 to existing timestamp? 
&lt;BR /&gt;what is the format of your incoming date? 
&lt;BR /&gt;Vaibhav</description>
    <pubDate>Tue, 03 Jun 2014 13:52:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-03T13:52:51Z</dc:date>
    <item>
      <title>[resolved] Set TimeZone</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321080#M91155</link>
      <description>Hi, 
&lt;BR /&gt;I have a CSV that I'm importing to MySQL. 
&lt;BR /&gt;The time field is in 'Local Time'; however before I import to the table I need to convert it to UTC time. 
&lt;BR /&gt;My TimeZone is 5:30 UTC. Therefore I need to -5:30 from the mentioned time in the CSV and then import. 
&lt;BR /&gt;I tried this 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqriCAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Convert-Historical-UTC-Time-in-Local-Time-with-Daylight/td-p/111753&lt;/A&gt; 
&lt;BR /&gt;but it ain't correct. In fact I need to opposite of this. 
&lt;BR /&gt;Thanx in advance. 
&lt;BR /&gt;John</description>
      <pubDate>Tue, 03 Jun 2014 13:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321080#M91155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-03T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set TimeZone</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321081#M91156</link>
      <description>Pl check this post, you will get idea 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCr1sCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Adding-the-local-Date-Time-without-Time-Zone/td-p/112900&lt;/A&gt; 
&lt;BR /&gt;If you are sure that you want to convert it to timezone is UTC, then why not to just add -5.30 to existing timestamp? 
&lt;BR /&gt;what is the format of your incoming date? 
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 03 Jun 2014 13:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321081#M91156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-03T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set TimeZone</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321082#M91157</link>
      <description>The JVM will try to determine the correct TZ on it's own. On Windows, this is pretty straight forward. On Linux, there are several ways (locale,etc) and it can be hit or miss. Simply set the JVM timezone yourself in the load job, eg:&lt;BR /&gt;System.setProperty("user.timezone","America/Chicago");&lt;BR /&gt;java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("America/Chicago"));&lt;BR /&gt;Then write the values to a MySQL TIMESTAMP column, this way MySQL will convert and store it in UTC for you. It will convert it back to the TZ of the local JVM when querying through JDBC, all magical like.</description>
      <pubDate>Tue, 03 Jun 2014 19:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321082#M91157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-03T19:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set TimeZone</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321083#M91158</link>
      <description>Thanks for the replies; I kind of modified the existing code that I had looked up here. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqriCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Convert-Historical-UTC-Time-in-Local-Time-with-Daylight/td-p/111753&lt;/A&gt; 
&lt;BR /&gt;So, my date/time format is thus 
&lt;BR /&gt;2012-01-19 16:26:16 
&lt;BR /&gt;I needed to convert the time to -5:30 
&lt;BR /&gt;Therefore the time (prior to import) needs to be this 
&lt;BR /&gt;2012-01-19 10:56:16 
&lt;BR /&gt;Below is the code I used, successfully. 
&lt;BR /&gt;================================================ 
&lt;BR /&gt;package routines; 
&lt;BR /&gt;import java.util.Date; 
&lt;BR /&gt;public class F9322 { 
&lt;BR /&gt; static java.util.Calendar cal = java.util.Calendar.getInstance(); 
&lt;BR /&gt;/ static int zoneOffset = cal.get(java.util.Calendar.ZONE_OFFSET); 
&lt;BR /&gt;/ static int dstOffset = cal.get(java.util.Calendar.DST_OFFSET); 
&lt;BR /&gt; public static Date convertUTCtoLocalTime(Date date) { 
&lt;BR /&gt; cal.setTime(date); 
&lt;BR /&gt; cal.add(java.util.Calendar.HOUR_OF_DAY, -5); 
&lt;BR /&gt; cal.add(java.util.Calendar.MINUTE, -30); 
&lt;BR /&gt; return cal.getTime(); 
&lt;BR /&gt; } 
&lt;BR /&gt;} 
&lt;BR /&gt;================================================= 
&lt;BR /&gt;Hope it helps anyone who has the same problems. 
&lt;BR /&gt;John</description>
      <pubDate>Wed, 04 Jun 2014 06:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-TimeZone/m-p/2321083#M91158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-04T06:39:27Z</dc:date>
    </item>
  </channel>
</rss>

