LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2014, 04:39 PM   #1
dlrickman
LQ Newbie
 
Registered: Mar 2014
Posts: 1

Rep: Reputation: Disabled
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
 
Old 03-26-2014, 04:48 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
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

Last edited by szboardstretcher; 03-26-2014 at 05:05 PM.
 
Old 03-26-2014, 04:57 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,609

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Log Date/time doesn't change with system time saurabhchokshi Linux - Software 5 07-07-2010 01:27 AM
NTP Server giving central time instead of eastern time wjleon Linux - Networking 3 11-01-2007 05:04 PM
Change system time or date or both lel800 Linux - Newbie 6 10-28-2003 08:00 PM
how to change date and time in slackware 8.1 erikm103 Linux - Newbie 4 02-25-2003 07:26 PM
how do you change the date / time? jkane Linux - General 2 01-15-2002 10:09 PM


All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration