Since changing a time zone isn’t something done every day, I keep forgetting it. But it’s simple. First, choose the continent-city representation of your time zone, then set it in a configuration file and finally, let
emerge generate a binary file
/etc/localtime from it.
# ls /usr/share/zoneinfo/ # echo "Europe/Prague" > /etc/timezone # emerge --config sys-libs/timezone-data
(Of course, if you’re a systemd fan, this how-to is useless for you. But OpenRC users may find it useful.)
Tagged with: Gentoo Linux, time zone