Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone configuration is not correct #133

Open
harshrajsinha opened this issue Aug 22, 2022 · 1 comment
Open

Timezone configuration is not correct #133

harshrajsinha opened this issue Aug 22, 2022 · 1 comment

Comments

@harshrajsinha
Copy link

Hi Team my database in running on local timezone (IST, Asia/Kolkata). While creating source connector I am providing db.timezone as "Asia/Kolkata", but source connector is publishing datetime field to GMT before publishing into topic.

In the screen shot attached I have used TRADE_DATE column for incremental data load, this column is of TIMESTAMP.

In the below screen shot you can see, TRADE_DATE = '2022-08-22 11:16:01.000'
image

In the message published in the topic TRADE_DATE = '1661166961000' which is "Monday, August 22, 2022 4:46:01 PM" in my timezone.
image

Configuration screen shot.
image

Please help me understand what I am doing wrong.

@elakito
Copy link
Collaborator

elakito commented Sep 22, 2022

In HANA, the stored timestamp values are in UTC. Our current source connector code use HANA JDBC's getTimestamp method with the UTC calendar so that we already get the correct UTC timestamp value from the query result. There is no additional timezone conversion in the connector. Which tool are you using to display the timestamp value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants