Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: Date update

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Date update

    Hello, I have a rhel 6.3 server that i need to update the time.

    HTML Code:
    Thu Aug  7 17:01:30 EDT 2014
    but time should be in CDT like below..
    HTML Code:
    Thu Aug  7 15:04:16 CDT 2014
    I tried to update /etc/localtime and /etc/sysconfig/clock and also tried to set the date -s option. But neither of them work. How would I change the date& time. I will have to do via command line. Thanks.

  2. #2
    Just Joined!
    Join Date
    Jul 2014
    Yay Area, California
    Problem is with your time zone it looks like... It's off by the right amount of hours. You need to

    rm -rf /etc/localtime
    ln -sf /usr/share/zoneinfo/America/whateveryourtimezoneis /etc/localtime
    If you want to set the clock/date from the CLI manually. To set it to todays date/time (I'm in PST)

    date -s "7 AUG 2014 14:24:00"
    I apologize if I misunderstood your issue. Let me know if that works...If not I'm sure i can help you with a solution.

    Also, do you have ntp installed & ntpd on & pointed somewhere? If you have NTP setup & you get the timezone in localtime set properly then you should be able to get NTP to do the rest.

  3. #3
    Thanks. That did work. By the way I do have ntp configured yet. Thanks again.

  4. $spacer_open

Posting Permissions

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