Connector 8 - Datetime Convertion
Posted by: Stella Andriano
Date: April 14, 2020 03:41PM

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

Options: ReplyQuote

Written By
Connector 8 - Datetime Convertion
April 14, 2020 03:41PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.