?
Solved

How do Timezones work w/ Linux?

Posted on 1998-07-31
7
Medium Priority
?
272 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

765 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