I am working with several Ubuntu distroboxes that need to be either Eastern (New York) or Central (Chicago) to avoid conflicting code when Windows inherits the time from distrobox.
So far I have tried the following without success:
- Use Init with the distrobox, and then run dpkg-reconfigure tzdata
- This works until the distrobox is shut down, then it resets to UTC
- Create the distrobox with the added arguments -I -a “-–tzdata local”
- This didn’t seem to work as the time was UTC when it booted
- Edited /usr/share/containers/containers.conf
- This file is locked, and thus I didn’t touch it to avoid breaking the image
Wondering if editing the other locations outlined in the first conf file would work, those being:
- /etc/containers/containers.conf
- $XDG_CONFIG_HOME/containers/containers.conf or $HOME/.config/containers/containers.conf if $XDG_CONFIG_HOME is not set
If not, is there another way to change the default time from UTC?