Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-06, 10:17
BOD Member
 
Join Date: Jul 2006
Posts: 107
Default TimeZone

If your timezone is not set correctly, you may simply (or not) change it to the new timezone that you need. You can find out for sure what your timezone is by typing: "clock" at the command line. The output should be something similar to:

Sat 10 Apr 2004 10:16:00 AM EDT -0.125188 seconds


You will notice directly after the time (10:16:00 AM EDT) in this case that we are running Eastern Daylite Time. If you want to change it to something different, you have to update the file in /etc/localtime which is your timezone file. In older systems, this file is a symbolic link to another file, however we've found that on newer systems, an actual file exists here.

Here's what to do. First, cd follow these commands:

#cd /usr/share/zoneinfo
#ll


You should see a list of files that are broken down by country. In our case, we want to change our timezone to Central Daylight Time, so we are going to cd into Americas, make a backup of our original time file and then copy the new one to the location.

#cd /usr/share/zoneinfo/America
#cp /etc/localtime /etc/localtime-orig
#cp Chicago /etc/localtime


Next, we should bump our time against a time server and get everything set properly. The following commands will sync your system clock to a time server (time.nist.gov) and then sync your hardware clock to your system clock.

#/usr/bin/rdate -s time.nist.gov
#/sbin/hwclock --systohc


Now check your time. clock

The output should now read:

Sat 10 Apr 2004 10:18:00 AM CDT -0.125188 seconds
Keeping the Clock Up to Date
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 22:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.