Changes

Jump to: navigation, search

Timezone

22 bytes added, 00:21, 17 February 2007
no edit summary
To resolve the problem, You should configure your VE to have the same timezone as the HN. For example, if EST is your preferred timezone:
<pre>rm -rf /etc/localtime 2>/dev/null; unlink /etc/localtime 2>/dev/null
ln -s /usr/share/zoneinfo/EST /etc/localtime
vzctl exec 1041 rm -rf /etc/localtime 2>/dev/null
vzctl exec 1041 unlink /etc/localtime 2>/dev/null
vzctl exec 1041 ln -s /usr/share/zoneinfo/EST /etc/localtime</pre>
Or, here is a shell script that will let you change the timezones in ALL of your VPS's:
<pre>#! /bin/bash
for f in `ls /vz/private`
do
vzctl exec $f unlink /etc/localtime 2>/dev/null
vzctl exec $f ln -s /usr/share/zoneinfo/CST6CDT /etc/localtime
done</pre>
7
edits

Navigation menu