Solved

time zone to GMT

Posted on 2004-04-14
5
1,476 Views
Last Modified: 2010-07-27
Hi,

I want to set my time zone to GMT so that whenever i type in date it should return the time in GMT. I am using redhat linux 9.0. Currently when i type the command "date" it is returning the time as BST also when i type the command clock it is returning as BST. I want it to return time as GMT. what can i do. The option "system clock uses UTC is enabled" in redhat-config-date. pls reply urgently

thanks
phani
0
Comment
Question by:phanivas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 10830611
redhat-config-date can be used to set the TimeZone the OS uses.
0
 

Expert Comment

by:gottestod
ID: 10831666
date -u         prints date in UTC timezone which is AFAIK  == GMT
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 125 total points
ID: 10834638
You should configure as above, or,
define the shell variable   TZ  to be  "GMT0"  (that's a zero at the end).

;JOOP!
0
 
LVL 20

Expert Comment

by:Gns
ID: 10841722
Hm, is there some compelling reason you don't want BST? You'd likely miss out on DST with a straight UTC timezone... As gottestod says, it's easy getting the UTC equivalent time.
And brittish standard time is perhaps the definition of "nonstandard time (still the admiralty that suggest things like DST to the house of commons, right), so I could sympathize with such an argument, but... why be out of sync:-):-)

-- Glenn
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 10843554
If you want daylight saving time (summer time in Britain), then specify:
export TZ=GMT0GMST,M3.5.0,M10.5.0/3

that's the official European formula to which even London complies.
I'm not sure about the name GMST ....

;JOOP!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question