Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-16-2007, 01:18 PM   #1
LQ Newbie
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Smile Using zdump to verify timezone data

Hi. I need to verify the timezone data on a remote machine. Can anyone tell me the command using zdump?
Old 11-16-2007, 03:04 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,936
Blog Entries: 14

Rep: Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160
On remote machine:
zdump -v /etc/localtime |grep 2007

That will show you start/stop for Daylight Saving Time for 2007.

Typically /etc/localtime should be linked to or a copy of one of the zonefiles in /usr/share/zoneinfo (or its subdirectories).

e.g. My /etc/localtime on one server is a copy of /usr/share/zoneinfo/America/New_York because I'm in the US Eastern Time zone like New York.

You can also run zdump against those files e.g.
zdump -v /usr/share/zoneinfo/America/New_York |grep 2007
zdump -v /usr/share/zoneinfo/America/Yellowknife |grep 2007

Also type "echo $TZ" to see if your timezone variable is set - if it is then the value you see for time is whatever that specifies rather than /etc/localtime. /etc/localtime is the system global default.
Old 11-19-2007, 09:34 AM   #3
LQ Newbie
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much! Exactly what I wanted.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
k3b can't verify data DVD! IsaacKuo Linux - Software 12 05-21-2008 06:40 PM
timezone problem Mathsniper Linux - Newbie 9 06-08-2005 12:55 PM
Timezone All Over The World Xa! General 0 11-01-2004 09:41 AM
machine timezone sopiaz57 Linux - General 9 11-18-2003 02:09 PM
Timezone Again rch LQ Suggestions & Feedback 5 05-19-2003 11:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration