LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-16-2007, 02:27 AM   #1
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Rep: Reputation: 30
server date


Hello

my server date is now

date
Fri Feb 16 08:25:01 UTC 2007

I want change it to
Fri Feb 16 03:25:01 EST 2007

What to do please ?

Thanks
 
Old 02-16-2007, 04:22 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Your post is in Linux-General forum, so I will give you a general answer.
Every distribution has a specific method or user interface to deal with the time zones, and you may have interest in find the way for your distro.

Anyway,
The date format is controlled by a binary file with the definitions for your local time (daylight saving range, name of your zone, distance from the UTC, etc).
This file is /etc/localtime.

To change to another zone, simply copy or link it from files in /usr/share/zoneinfo/.
In you case, you can:
Code:
# cp /usr/share/zoneinfo/EST /etc/localtime
(or)
# rm /etc/localtime
# ln -s /usr/share/zoneinfo/EST /etc/localtime
Some distro have a file named /etc/sysconfig/clock or /etc/sysconfig/timezone
where you set the default localtime. have a look. It is read at boot time and set the localtime for process started at this time.
 
Old 02-16-2007, 04:30 AM   #3
marcind
LQ Newbie
 
Registered: Feb 2007
Location: poland
Distribution: debian, aurox, fedora
Posts: 5

Rep: Reputation: 0
time zone

U can also use TZ
code:

TZ=EST
export TZ

and after it U have EST time zone...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping my server up 2 date vanderkerkoff Linux - Server 2 03-14-2011 07:15 AM
Installation date of the server sunhui Linux - Software 1 10-18-2006 02:16 AM
File Server vs. Backing up date fredmt Linux - General 7 11-02-2005 08:11 AM
How to up(2)date an installation server? polik Linux - Enterprise 1 06-21-2005 12:50 PM
reset the date on server enzo250gto Linux - General 1 12-10-2003 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:16 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
Open Source Consulting | Domain Registration