Solved

time zone to GMT

Posted on 2004-04-14
5
1,462 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
5 Comments
 
LVL 40

Expert Comment

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

Expert Comment

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

Accepted Solution

by:
sciuriware earned 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now