Debezium(Engine) always reads postgres timestamp fields as UTC
33 views
Skip to first unread message
Ankitha Kini
unread,
Sep 3, 2023, 11:22:55 AM9/3/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to debezium
We are using Debezium Engine in our Spring boot application, and our timestamp fields are in IST format. But they are being considered to be in UTC format by default, and the corresponding epoch is being sent. Can we change this behaviour?
Chris Cranford
unread,
Sep 5, 2023, 9:22:09 AM9/5/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to debe...@googlegroups.com
Hi,
That is the default behavior out of the box. If you want to
change that behavior, you can implement a CustomConverter
implementation that you deploy alongside the connector. Another
alternative would be to use a SMT in order to adjust the UTC
values to whatever format you want on a per-message basis. We are
currently working on a TimestampConverter SMT that will allow you
to convert these fields to a specific time zone, which might fit
your needs. Please see the upcoming pull request [1] prepared by
Anisha.