Timezone sync issue between the host and containers (#14000)

#### Why I did it
To fix the timezone sync issue between the containers and the host. If a certain timezone has been configured on the host (SONIC) then the expectation is to reflect the same across all the containers.

This will fix [Issue:13046](https://github.com/sonic-net/sonic-buildimage/issues/13046).

For instance, a PST timezone has been set on the host and if the user checks the link flap logs (inside the FRR), it shows the UTC timestamp. Ideally, it should be PST.
This commit is contained in:
nmoray
2023-06-26 05:06:09 +05:30
committed by GitHub
parent 6bb0483af3
commit f978b2bb53
39 changed files with 113 additions and 0 deletions

View File

@@ -95,4 +95,8 @@ do
fi
done
TZ=$(cat /etc/timezone)
rm -rf /etc/localtime
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
exec /usr/local/bin/supervisord