




 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
|
Setting your Server's Time Zone
Changing the Time Zone
To change the Time Zone for your Virtual Server, do the following:
1. At a Telnet or SSH command
prompt, type:
% chmod 600 ~/etc/localtime
% cp /usr/share/zoneinfo/America/Adak ~/etc/localtime
Here is a list
of possible zones (substitute one of these instead of "America/Adak"
shown above):
| What
to Enter |
Time
Zone |
America/Indianapolis
America/Indiana/Marengo
America/Indiana/Knox |
Eastern
Standard Time |
America/Chicago
America/Menominee |
Central
Time |
America/Denver
America/Boise
America/Phoenix |
Mountain
Time |
America/Los_Angeles
|
Pacific
Time |
America/Anchorage
America/Juneau
America/Yakutat
America/Nome |
Alaska
Time |
| America/Adak |
Aleutian
Islands |
| Pacific/Honolulu |
Hawaii
|
If you want a European time zone, type this instead:
% chmod 600 ~/etc/localtime
% cp /usr/share/zoneinfo/Europe/London ~/etc/localtime
Here is a list of possible zones (substitute one of these instead
of "London" shown above):
Amsterdam, Andorra, Athens, Belfast, Belgrade, Berlin, Bratislava, Brussels,
Bucharest, Budapest, Chisinau, Copenhagen, Dublin, Gibraltar, Helsinki,
Istanbul, Kaliningrad, Kiev, Lisbon, Ljubljana, London, Luxembourg, Madrid,
Malta, Minsk, Monaco, Moscow, Oslo, Paris, Prague, Riga, Rome, Samara,
San_Marino, Sarajevo, Simferopol, Skopje, Sofia, Stockholm, Tallinn, Tirane,
Vaduz, Vatican, Vienna, Vilnius, Warsaw, Zagreb, Zurich
2. Create the following directory on your virtual server and copy the appropriate
file:
% mkdir ~/usr/share/zoneinfo
% mkdir ~/usr/share/zoneinfo/America
% cp /usr/share/zoneinfo/America/Los_Angeles ~/usr/share/zoneinfo/America/
3. Add the following new line to the ~/.cshrc file.
setenv TZ America/Los_Angeles
After editing the ~/.cshrc file, be sure to run:
4. To configure cron to use the same timezone, add the following line to
the beginning of your cronfile:
Other zones
There are also quite a few time zones in this file:
Testing and Using It
To make sure you set the time zone correctly on your Virtual Server do the
following:
Now, restart your Apache Web Server
so that it will use the new time zone you have set:
|
|