Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to change the Talend current date in PST timeZone ?

I am able to convert it into UTC timezone, but i need to convert it into PST timezone which is 8 hours less than UTC timezone.

This is what i am doing as of now :- 

TalendDate.formatDateInUTC("yyyy-MM-dd HH:mm:ss",TalendDate.getCurrentDate())

 

Any immediate help would be appreciated!

 

Thanks!

 

 

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hello @aagnihot 

 

Use a tJava and set your local timezone before your date transformation.

- Go to tjava 'advanced Setting' and import the TimeZone library : 

import java.util.TimeZone;

- Go back to 'basic settings' => Set the timeZone you wish and use the TalendDate.formatDate function :

TimeZone.setDefault(TimeZone.getTimeZone("PST"));
TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",TalendDate.getCurrentDate());

Regards,

Pierre