Results 1 to 6 of 6
  1. #1
    nootkan 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.

  2. #2
    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!

  3. #3
    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.

  4. #4
    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

  5. #5
    Join Date
    May 2008
    Location
    Houston
    Posts
    44
    You can also run:
    rdate -s time.nist.gov

  6. #6
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    14,135
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •