Skip to content

Instantly share code, notes, and snippets.

@thiago-scherrer
Last active December 22, 2021 14:48
Show Gist options
  • Save thiago-scherrer/9d59399343ab18e2e9ed2fbc2c1869ef to your computer and use it in GitHub Desktop.
Save thiago-scherrer/9d59399343ab18e2e9ed2fbc2c1869ef to your computer and use it in GitHub Desktop.
How to set timezone on Ubuntu

List all time zones

timedatectl list-timezones

Set a timezone

sudo timedatectl set-timezone <TIME ZONE HERE>

Example

ᐅ timedatectl list-timezones | grep Sao
Africa/Sao_Tome
America/Sao_Paulo
ᐅ sudo timedatectl set-timezone America/Sao_Paulo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment