Skip to content

Instantly share code, notes, and snippets.

@sudheendrach
Last active August 29, 2015 14:05
Show Gist options
  • Save sudheendrach/00d2a2a39ba9f700e79d to your computer and use it in GitHub Desktop.
Save sudheendrach/00d2a2a39ba9f700e79d to your computer and use it in GitHub Desktop.
Changing server timezone

To check your server's current timezone

root@projectx:/sites# date +%Z
EDT

To change

root@projectx:/sites# dpkg-reconfigure tzdata

Asks to select your country/continent first and then city

Current default time zone: 'Asia/Kolkata'
Local time is now:      Wed Aug 13 22:20:12 IST 2014.
Universal Time is now:  Wed Aug 13 16:50:12 UTC 2014.

root@projectx:/sites# date +%Z
IST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment