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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

MySQL output shifting FirstOfMonth to End of Previous Month

Hello everyone,,

OK, this is weird... I am calculating a firstOfMonth value that shows up properly in the last tLog before inserting into MySQL:

 

2019-01-06

2019-01-07

2019-01-08

2019-01-09

 

But when I query the database, all 4 of those show up as:

 

2019-05-31

2019-06-30

2019-07-31

2019-08-31

 

What the heck?

 
 
Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi,

 

    Please check the date format of your schema is correct while inserting data to DB. It could be some other format. You check the details by adding a tLogrow before and after the component.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

TRF
Champion II
Champion II

Check that timezone is the same for MySql and the job JVM.
If not, it could be easier to change it for the job by setting the JVM "user.timezone" property with "-Duser.timezone=Europe/Paris" (or anything else).
Go to the Run tab, then Advance Settings and "Use Specific JVM arguments".