Solved

time zone to GMT

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux FTP Error 5 45
Samba 4, Users Permission, 5 64
Linux 3 34
SSSD - Automatic kerberos ticket initialization 1 16
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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,…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

749 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