<?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: TalendDate.getCurrentDate() in GMT in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253579#M36871</link>
    <description>Hi kalyan,
&lt;BR /&gt;Try this expression&amp;nbsp;
&lt;B&gt;TalendDate.parseDate("dd MMM yyyy HH:mm:ss",TalendDate.getCurrentDate().toGMTString())&amp;nbsp;&lt;/B&gt;
&lt;BR /&gt;and let me know it's working for you or not.</description>
    <pubDate>Mon, 05 Jan 2015 13:17:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-05T13:17:47Z</dc:date>
    <item>
      <title>TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253577#M36869</link>
      <description>Hi
&lt;BR /&gt;I am trying to update a date field using TalendDate.getCurrentDate() function in tMap but this one updates the field with local time zone. Is there a way to update the field in GMT?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Kalyan</description>
      <pubDate>Mon, 05 Jan 2015 10:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253577#M36869</guid>
      <dc:creator>satyavar</dc:creator>
      <dc:date>2015-01-05T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253578#M36870</link>
      <description>The java Date object has non timezone. It is always UTC based. The timezone is actually only relevant if you want to render a date.
&lt;BR /&gt;If you have a Date and you need to move it into GMT you have to know the necessary bias.
&lt;BR /&gt;Use the function TalendDate.addDate:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;TalendDate.addDate(TalendDate.getCurrentDate(), -1,"HH")&lt;/PRE&gt;
&lt;BR /&gt;This example moves the current date one hour in the past.</description>
      <pubDate>Mon, 05 Jan 2015 12:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253578#M36870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T12:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253579#M36871</link>
      <description>Hi kalyan,
&lt;BR /&gt;Try this expression&amp;nbsp;
&lt;B&gt;TalendDate.parseDate("dd MMM yyyy HH:mm:ss",TalendDate.getCurrentDate().toGMTString())&amp;nbsp;&lt;/B&gt;
&lt;BR /&gt;and let me know it's working for you or not.</description>
      <pubDate>Mon, 05 Jan 2015 13:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253579#M36871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253580#M36872</link>
      <description>I am not sure if the toGMTString method always returns the same format and it actually does not solve the problem because the parser depends also from the local timezone of the job server. I would not recommend that!
&lt;BR /&gt;By far better is if you know which is the original timezone of the given date and move it with the correct bias.</description>
      <pubDate>Mon, 05 Jan 2015 13:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253580#M36872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T13:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253581#M36873</link>
      <description>Time zone varies between environments. I cannot write code specific to environments.</description>
      <pubDate>Mon, 05 Jan 2015 14:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253581#M36873</guid>
      <dc:creator>satyavar</dc:creator>
      <dc:date>2015-01-05T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253582#M36874</link>
      <description>I tried the option of 
&lt;B&gt;TalendDate.parseDate("dd MMM yyyy HH:mm:ss",TalendDate.getCurrentDate().toGMTString())&lt;/B&gt;
&lt;BR /&gt;
&lt;BR /&gt;This works fine on output object if the action on data is set to Insert. But the same thing fails to load the date time in GMT if the action on data is set to Insert or update.
&lt;BR /&gt;Any ideas?</description>
      <pubDate>Mon, 05 Jan 2015 14:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253582#M36874</guid>
      <dc:creator>satyavar</dc:creator>
      <dc:date>2015-01-05T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253583#M36875</link>
      <description>can you please provide error on Insert or update action and also provide 1 sample date which you are trying to update.</description>
      <pubDate>Mon, 05 Jan 2015 14:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253583#M36875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T14:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253584#M36876</link>
      <description>Ok guys, it works fine? This method is deprecated! Oracle can remove this without any notification in the next Java release. 
&lt;BR /&gt;This is a quick and dirty solution and by far not professional.</description>
      <pubDate>Mon, 05 Jan 2015 16:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253584#M36876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T16:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.getCurrentDate() in GMT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253585#M36877</link>
      <description>Hi 
&lt;BR /&gt;Attached screenshot#1 has my job. 
&lt;BR /&gt;There are 2 if conditions. 
&lt;BR /&gt;Action on data is set to Insert only on final output (S_BU) object with If Condition 1. 
&lt;BR /&gt;Action on data is set to Insert or Update on final output (S_BU) object with If Condition 2. 
&lt;BR /&gt;If Condition 1 is true then date is getting stored correctly in GMT. But if 2nd condition is true then the 2 fields are getting stored in my local date time. 
&lt;BR /&gt;Why is such an odd behavior? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Kalyan 
&lt;BR /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/224085/abc.png.png" /&gt;</description>
      <pubDate>Tue, 06 Jan 2015 09:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-getCurrentDate-in-GMT/m-p/2253585#M36877</guid>
      <dc:creator>satyavar</dc:creator>
      <dc:date>2015-01-06T09:31:55Z</dc:date>
    </item>
  </channel>
</rss>

