LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to Change the Date to Eastern Time (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-change-the-date-to-eastern-time-4175499576/)

dlrickman 03-26-2014 03:39 PM

Trying to Change the Date to Eastern Time
 
I am a Linux Newbie
Currently I am running version Red Hat Enterprise Linux Server release 5.5 - Virtual Machine

The date is currently showing up as
Wed Mar 26 13:37:38 PDT 2014

I want the date to show as Eastern time. Any help in how to do this would be appreciated.

Thanks in advance

szboardstretcher 03-26-2014 03:48 PM

Edit: tested on Centos 6.5 and Centos 5.7

Here you are:

Code:

rm /etc/localtime
tzselect

or the more complicated:

Code:

rm /etc/localtime
ln -sf /usr/share/zoneinfo/[Use tab completion to find your timezone] /etc/localtime


smallpond 03-26-2014 03:57 PM

I think RHEL 5 used a text file /etc/sysconfig/clock. You can run system-config-date for a GUI.


All times are GMT -5. The time now is 07:40 AM.