Results 1 to 6 of 6
Thread: Change My Server Time
-
12-22-2008, 02:48 AM #1nootkan Guest
Change My Server Time
Was wondering if someone could provide me with the ssh command to change my server time from Virginia, USA to the Pacific Northwest where I live. I've been searching all day with no luck. Thanks in advance.
-
12-22-2008, 04:52 AM #2Web Hosting Master
- Join Date
- Nov 2005
- Location
- Minneapolis, MN
- Posts
- 1,648
cp /usr/share/zoneinfo/PST8PDT /etc/localtime
__________________Eric SpaethEnterprise Network Engineer :: Hosting Hobbyist :: Master of ProcrastinationHear a duck quack!
-
12-22-2008, 05:37 AM #3Eternal Learner
- Join Date
- Jul 2007
- Posts
- 2,051
cd /usr/share/zoneinfo
mv /etc/localtime /etc/localtime-old
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
/sbin/hwclock -âsystohc
Replace New_York with your timezone.
-
12-22-2008, 06:37 AM #4Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
I thought I would throw in another option if you are on centos or redhat enterprise
Centos/Fedora: yum install -y system-config-date
up2date: up2date -f system-config-date
Then use: /usr/bin/system-config-date
It will provide a gui style interface.
__________________Steven Ciaburri Competent Linux Server Management from Rack911
-
12-23-2008, 12:54 AM #5Junior Guru Wannabe
- Join Date
- May 2008
- Location
- Houston
- Posts
- 44
You can also run:
rdate -s time.nist.gov
-
12-23-2008, 01:19 AM #6
Quote:
Originally Posted by txspaderz
You can also run:
rdate -s time.nist.gov
Will not work if the timezone is not set properly. That will only 'update' the time according to the server itself, not change the timezone.
__________________Linux Tech Networks: Reliable Server Administration and Monitoring since 2002VBulletin Development: VBulletin customizations, development, hosting and leased licenses