Docker - Debezium server wrong timezone

87 views
Skip to first unread message

Joaquín N. García

unread,
Sep 11, 2023, 7:00:33 PM9/11/23
to debezium
Hello everyone!

I am having trouble setting the timezone America/Monterrey or GMT-6 in the debezium serve docker image. When I run the date command inside the container, it always shows me the UTC time.

I have tried setting the time variable in the dockerfile, for example, ENV TZ=Your/Timezone. I have also tried inside the container with commands such as export TZ=Your/Timezone.

However, the time is still 6 hours ahead of what I want.

I would appreciate the cooperation.

jiri.p...@gmail.com

unread,
Sep 12, 2023, 12:11:49 AM9/12/23
to debezium
Hi,

could you try to pass `user.timezone` system properti via `DEBEZIUM_OPTS` env var?

J.

Joaquín N. García

unread,
Sep 12, 2023, 6:27:50 PM9/12/23
to debezium
Hi Jiri,

Thanks for your reply.

I have not tried passing the user.timezone system property via the DEBEZIUM_OPTS environment variable yet. I will try it and let you know if it works.
In the meantime, here is the command I will use:

DEBEZIUM_OPTS="-user.timezone=America/Mexico_City" 

it's okay this way?

thank you and regards!

jiri.p...@gmail.com

unread,
Sep 13, 2023, 8:35:17 AM9/13/23
to debezium
Hi,

it should be -Duser.timezone

J.

Reply all
Reply to author
Forward
0 new messages