Correcting timezone in Docker Container

# no effect:
root@container:/# cat /etc/timezone
Europe/Amsterdam
root@container:/# dpkg-reconfigure tzdata

Current default time zone: 'Etc/UTC'
Local time is now:      Mon Nov  6 16:40:04 UTC 2023.
Universal Time is now:  Mon Nov  6 16:40:04 UTC 2023.

# solution:
root@container:/# TZ=Europe/Amsterdam
root@container:/# ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
root@container:/# dpkg-reconfigure tzdata

Current default time zone: 'Europe/Amsterdam'
Local time is now:      Mon Nov  6 17:41:11 CET 2023.
Universal Time is now:  Mon Nov  6 16:41:11 UTC 2023.