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: 
fjblau
Contributor
Contributor

MySQL output shifting FirstOfMonth to End of Previous Month

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 (2)
1 Reply
TRF
Champion II
Champion II

This may be due to the default timezone used by MySQL.

This link may help you https://stackoverflow.com/questions/930900/how-do-i-set-the-time-zone-of-mysql