[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How do Timezones work w/ Linux?

Posted on 1998-07-31
7
Medium Priority
?
282 Views
Last Modified: 2013-12-06
Hi ,
I am using Linux at work. I need to figure out how to change timezones etc... I'd also like a complete explanation of Date, how it works and so on. I have researched and found little explanation. So if someone out there has this knowledge, I would like it, I might be over or underpricing this, it seems so simple and yet I couldn't find the answer.

Red Hat 5.0 Is what we're using.
0
Comment
Question by:M0nkeyB0y
[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
  • 4
  • 2
7 Comments
 

Expert Comment

by:chrismith
ID: 1637680
You need to set the TZ environment variable to the appropriate country (eg GB for england). The available choices are in /usr/share/zoneinfo (RH 5.1) or possibly /usr/lib/zoneinfo on oler systems. One source of info is the man pages for 'tzset' and 'tzfile'

Hope this helps.


0
 

Author Comment

by:M0nkeyB0y
ID: 1637681
hey,yeah, you pointed me in the right direction.... but could you tell me like how to change from central to eastern or pacific time....? I'm rather new to linux and unix in general and I guess I'm having trouble understanding the Man pages.... I will award the points, I just want a simple "sock puppet" explanation.
0
 

Author Comment

by:M0nkeyB0y
ID: 1637682
I'm sorry I huess I wasn't succinct in my Question.... I apologize all i need is to  know how to set the timezone.... I'm reading those man pages now, but it really isn't helping
for example I am sending a box to LA and I want to change from central to pacific time.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:M0nkeyB0y
ID: 1637683
I'm sorry I huess I wasn't succinct in my Question.... I apologize all i need is to  know how to set the timezone.... I'm reading those man pages now, but it really isn't helping
for example I am sending a box to LA and I want to change from central to pacific time.
0
 

Accepted Solution

by:
chrismith earned 600 total points
ID: 1637684
Ok, look at the link /etc/localtime it will point to something like /usr/share/zoneinfo/US/Central change it to /usr/share/zoneinfo/US/Pacific and hey presto - all will be well!


0
 
LVL 3

Expert Comment

by:marcelofr
ID: 1637685
use setup -> timeconfig and DON'T tag hardware time to GMT...
0
 

Author Comment

by:M0nkeyB0y
ID: 1637686
hey thats just what I needed!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month12 days, 23 hours left to enroll

650 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