Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date 20191006 changed to 20191005 when uploaded to Snowflake

Hi, something very weird is happening when I'm uploading a CSV with dates to Snowflake. All dates are uploaded fine except for 20191006 which is transformed to 20191005. I'm using a very simple transformation "TalendDate.parseDate("yyyy-MM-dd",row1.newColumn)"

I tried hardcoding and only adding a column "TalendDate.parseDate("yyyy-MM-dd","2019-10-06")" and it has the same behaviour of transforming it to 20191005 when instead of uploading to Snowflake I output a CSV it works fine. When uploading the CSV to Snowflake (without using Talend) it also works fine.

0683p000009M9L0.png

0683p000009M9Ey.png0683p000009M9L5.png0683p000009M9LF.png0683p000009M9Ga.png

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I found the solution... a tJava component needs to be added before the outut to Snowflake with the following code:
java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("GMT")) ;

View solution in original post

1 Reply
Anonymous
Not applicable
Author

I found the solution... a tJava component needs to be added before the outut to Snowflake with the following code:
java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("GMT")) ;