MySQL output shifting FirstOfMonth to End of Previous Month

Highlighted
Four Stars

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?

 
 
Employee

Re: MySQL output shifting FirstOfMonth to End of Previous Month

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 :-)

Sixteen Stars TRF
Sixteen Stars

Re: MySQL output shifting FirstOfMonth to End of Previous Month

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".


TRF

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog