How to change date/timezone on vps

If your container was wrong date/timezone, login to the host node and run


$ vzctl stop 110
$ vzctl set 110 --capability sys_time:on --save
$ vzctl start 110


After that, just login in the container:


$ vzctl enter 110


And do this:


$ mv /etc/localtime /etc/localtime.old
$ ln -s /usr/share/zoneinfo/Europe/Lisbon /etc/localtime


That’s it!

Leave a Reply

You must be logged in to post a comment.