Technical Stuffs

Changing VPS Timezone

One of many things that you probably do when managing a VPS is setting up date and time to match your local date and time. Here’s a quick guide to change your VPS’ timezone.

You can find your own timezone at /usr/share/zoneinfo/ and copy it to /etc/localtime. Here’s the magic spell:

[server]# cp /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

Of course you have to change that Asia/Jakarta thing into your own timezone.

The date command output before I change its timezone:

[server]# date
Wed Apr  4 16:34:20 EDT 2012

And this is after:

[server]# date
Thu Apr  5 03:36:05 WIT 2012

Tic.. tac.. tic.. tac..

Leave a Reply