Solved

time zone to GMT

Posted on 2004-04-14
5
1,473 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 91
linux pull logs and export FTP 4 71
how to configure linux OS using Ubuntu 7 44
Web resource - Man pages for SUSE Enterprise Linux 11 1 26
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

777 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