Skip to content

Instantly share code, notes, and snippets.

@adamstac
Created November 14, 2013 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamstac/7462464 to your computer and use it in GitHub Desktop.
Save adamstac/7462464 to your computer and use it in GitHub Desktop.
How to set the timezone on Ubuntu

How to set the timezone on Ubuntu

You can check your current timezone by just running...

$ date
$ Thu Nov 14 00:39:05 CST 2013

You can also check the timezone file...

$ more /etc/timezone
$ US/Central

To set the timezone just run the following command and then follow the on screen instructions.

$ sudo dpkg-reconfigure tzdata

Make sure you also restart cron to pick up the updated timezone.

$ sudo service cron stop
$ sudo service cron start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment