Hi Everybody,
I updated the connector version from 5.1.40 to 8.0.13 and found a problem with the Datetime data type that in the previous version did not exist.
Suppose my application receives the following date to be stored in the database:
"2019-02-12T18:08:07.300"
When doing the insert from the application and consulting, later, on the server I see that the date is stored correctly. But, when I retrieve the data from the application, the date is different, the connector converts it to the application's timezone.
Date to be inserted: 2019-02-12 18:08:07.300
Date inserted in the database: 2019-02-12 18:08:07.300000
Date retrieves: 2019-02-12 15:08:07.3
MySQL server timezone is UTC
Application Timezone is GMT-3
Why is happening this? Thanks.
I updated the connector version from 5.1.40 to 8.0.13 and found a problem with the Datetime data type that in the previous version did not exist.
Suppose my application receives the following date to be stored in the database:
"2019-02-12T18:08:07.300"
When doing the insert from the application and consulting, later, on the server I see that the date is stored correctly. But, when I retrieve the data from the application, the date is different, the connector converts it to the application's timezone.
Date to be inserted: 2019-02-12 18:08:07.300
Date inserted in the database: 2019-02-12 18:08:07.300000
Date retrieves: 2019-02-12 15:08:07.3
MySQL server timezone is UTC
Application Timezone is GMT-3
Why is happening this? Thanks.