How do I change the system time or timezone in my VPS?

You cannot change the system time for a VPS because all VPSes on the hardware node have the same system time. However, it is possible to change the default system timezone inside a VPS, for example, by replacing /etc/localtime with the file from /usr/share/zoneinfo which contains a description of your timezone.

For example if you want to change the timezone to NZ, you can do this via SSH:

cd /usr/share/zoneinfo
cp NZ /etc/localtime

The server will ask you:

cp: overwrite `/etc/localtime'? 

Answer with y and your timezone will be changed.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

VZPP shows MySQL and httpd down?

If you have cPanel, this is due to incompatiblity between the VPS system and cPanel. The VPS...

What name servers do I use for my domains on my VPS?

Please register your private name servers using the tutorial that applies to your domain...

I would like to change the OS (operating system) of my VPS. How can I do that?

If you would like to change the OS of your VPS, you need to take a complete backup of any of your...

Which Linux flavor do you recommend for my VPS and why?

We recommend enterprise level operating systems such as CentOS. This is because it has the most...

I have a shared/reseller account. Why should I upgrade to VPS?

VPS is a virtual private server that gives you a separate process environment not shared by other...