vserver Howto/FAQ

Howto index

Is it possible to have a different time zone for one vserver

Yes. The timezone is really cosmetic. The timezone is handled by a file called /etc/localtime. Whenever a program tries to present the system time, it request the current time from the kernel and receive a GMT time. It then uses /etc/localtime to find out how to translate the time to local time. Each vserver may have a different one. Just copy the proper file from /usr/share/zoneinfo over /etc/localtime.

A vserver is not allowed to change the system time unless it has the CAP_SYS_ADMIN capability. But it is not needed to have a different timezone.