Home Contact Us Search

[ Order a Server ] [ Server Support ]


[ Getting Started ] [ Server Help ] [ Add on Help ] [ Solution ] [ Trouble Shooting ]

PLEASE NOTE, THIS IS VERY OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS

[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

Changing Your Virtual Server Time Zone

Connect to your server via SSH or Telnet and complete these steps.

  1. Select the Timezone you want to use from the /usr/share/zoneinfo/ directory:

    % cd /usr/share/zoneinfo
    % ls
    		
  2. Copy the time zone file onto your Virtual Private Server. This example uses the America/Los_Angeles timezone:

    % cp /usr/share/zoneinfo/America/Los_Angeles ~/etc/localtime
    	    
  3. 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/
    		
  4. Add the following new line to the ~/.cshrc file.

    setenv TZ America/Los_Angeles

    After editing the ~/.cshrc file, be sure to run:

    % source ~/.cshrc
  5. To configure crontab to use the same timezone, add the following line to the beginning of your cronfile:

    TZ=America/Los_Angeles
  6. Now, edit the /etc/proftpd.conf file and add this entry:

            TimesGMT off

  7. Finally, restart_apache so that it will use your new timezone for it's log files.


Here is a list of available USA time zones (substitute one of these for America/Los_Angeles or Pacific above):

FreeBSD
America/New_York        Eastern Time
America/Detroit         Eastern Time - Michigan - most locations
America/Louisville      Eastern Time - Louisville, Kentucky
America/Indianapolis    Eastern Standard Time - Indiana - most locations
America/Indiana/Marengo Eastern Standard Time - Indiana - Crawford County
America/Indiana/Knox    Eastern Standard Time - Indiana - Starke County
America/Indiana/Vevay   Eastern Standard Time - Indiana - Switzerland County
America/Chicago         Central Time
America/Menominee       Central Time - Michigan - Wisconsin border
America/Denver          Mountain Time
America/Boise           Mountain Time - south Idaho & east Oregon
America/Shiprock        Mountain Time - Navajo
America/Phoenix         Mountain Standard Time - Arizona
America/Los_Angeles     Pacific Time
America/Anchorage       Alaska Time
America/Juneau          Alaska Time - Alaska panhandle
America/Yakutat         Alaska Time - Alaska panhandle neck
America/Nome            Alaska Time - west Alaska
America/Adak            Aleutian Islands
Pacific/Honolulu        Hawaii

European Time Zones

To change the time zone on your Virtual Server to the Greenwich Mean Time zone (for example), issue the following commands according to your Virtual Server O/S:
FreeBSD
% chmod 600 ~/etc/localtime
% cp /usr/share/zoneinfo/Europe/London ~/etc/localtime

Here is a list of possible European time zones (substitute one of these for London above):

FreeBSD
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

Other Time Zones

There are many more time zones in these directories:
FreeBSD
/usr/share/zoneinfo

Did It Work?

To make sure you set the time zone correctly on your Virtual Server do the following:
% virtual date

Now, restart your Virtual Server Apache Web Server so that it will use the new time zone you have set:

% restart_apache

[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

PLEASE NOTE, THIS IS OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS