Skip to content

Instantly share code, notes, and snippets.

@ebta
Last active April 14, 2022 03:28
Show Gist options
  • Save ebta/5d5197deb5dca65d6cda2acdcd354283 to your computer and use it in GitHub Desktop.
Save ebta/5d5197deb5dca65d6cda2acdcd354283 to your computer and use it in GitHub Desktop.
Mengubah timezone di Ubuntu 20.04

Check current timezone

date 
timedatectl

Option 1 – Using timedatectl

Using timedatectl, check first available timezones

timedatectl list-timezones
sudo timedatectl set-timezone "Asia/Jakarta"

Option 2 – Using /etc/localtime

Backup first

mv /etc/localtime /etc/localtime-backup
ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment