Set antsleOS Time Zone

1 reply
MarioStaff
35 posts

You can set the antsleOS timezone by looking for your timezone in the directory  /usr/share/zoneinfo. (in the antsleOS).

SSH to the antsle's command line and list the zoneinfo directories

ls /usr/share/zoneinfo

Then list the zone files in the directory within your region name. I will use my timezone in this example.

ls /usr/share/zoneinfo/America

Update the timezone config file.

echo "America/LosAngeles" > /etc/timezone

And finally update the system timezone data with

emerge --config sys-libs/timezone-data
MarioStaff
35 posts

The above instructions are for edgeLinux version 0.x.x
For edgeLinux 2.x

Get current timezone setting

timedatectl
or
ll /etc/localtime

/etc/localtime should be a symlink to the zone data file.
Find your timezone with

timedatectl list-timezones

Set the timezone with

timedatectl set-timezone your_time_zone
timedatectl set-timezone America/New_York

▲ 1

Log in to reply. New here? It takes a minute.