Docker TimeZone

Dear Team,

Good Evening !!

I need help/Support to find the Root cause for an Issue about timezone.

Issue Description :
We have a Java entryPoint argument :
-Duser.timezone=Asia/Tokyo. - To get Japan time in the log (UTC time + 9)

Till now It was giving correct time in our log.
Recently we added another container for flink, and there are no timezone argument in flink docker compose entry.

We are observing, it is adding everywhere +9 to the time
0
createTimestamp: 2023-12-10T09:21:58.304Z
lastModifiedTimestamp: 2023-12-10T09:21:58.304Z
firstCompletedTimestamp: 2023-12-08T03:23:04.826Z

1
createTimestamp: 2023-12-10T00:22:38.205Z
lastModifiedTimestamp: 2023-12-10T00:22:38.205Z
firstCompletedTimestamp: 2023-12-08T03:23:04.826Z

2
createTimestamp: 2023-12-09T15:22:42.799Z
lastModifiedTimestamp: 2023-12-09T15:22:42.799Z
firstCompletedTimestamp: 2023-12-08T03:23:04.826Z

3
createTimestamp: 2023-12-09T06:22:47.886Z
lastModifiedTimestamp: 2023-12-09T06:22:47.886Z
firstCompletedTimestamp:2023-12-08T03:23:04.826Z

We are expecting
0

lastModifiedTimestamp: 2023-12-07T09:06:51.526Z
createTimestamp: 2023-12-07T09:06:51.526Z
firstCompletedTimestamp: 2023-12-07T09:08:36.841Z

1
lastModifiedTimestamp: 2023-12-07T09:08:04.277Z
createTimestamp: 2023-12-07T09:08:04.277Z
firstCompletedTimestamp: 2023-12-07T09:08:36.841Z

2
lastModifiedTimestamp: 2023-12-07T09:08:09.841Z
createTimestamp: 2023-12-07T09:08:09.841Z
firstCompletedTimestamp: 2023-12-07T09:08:36.841Z

3
lastModifiedTimestamp: 2023-12-07T09:08:15.712Z
createTimestamp: 2023-12-07T09:08:15.712Z
firstCompletedTimestamp: 2023-12-07T09:08:36.841Z

Thanks
Subrata Dey

Usually you can set the timezone for Docker Linux containers via env:

services:
  traefik:
    image: traefik:v2.10
    hostname: '{{.Node.Hostname}}'
    environment:
      - TZ=Europe/Berlin
    …