Portal Home > Knowledgebase > Articles Database > Change My Server Time
Change My Server Time
Posted by nootkan, 12-22-2008, 02:48 AM |
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.
|
Posted by spaethco, 12-22-2008, 04:52 AM |
cp /usr/share/zoneinfo/PST8PDT /etc/localtime
__________________Eric SpaethEnterprise Network Engineer :: Hosting Hobbyist :: Master of ProcrastinationHear a duck quack!
|
Posted by prashant1979, 12-22-2008, 05:37 AM |
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.
|
Posted by Steven, 12-22-2008, 06:37 AM |
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
|
Posted by txspaderz, 12-23-2008, 12:54 AM |
You can also run:
rdate -s time.nist.gov
|
Posted by whmcsguru, 12-23-2008, 01:19 AM |
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
|
Add to Favourites Print this Article
Also Read
SenderBase (Views: 614)