-   Linux - Newbie (
-   -   Using zdump to verify timezone data (

JackieBlue 11-16-2007 01:18 PM

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?

MensaWater 11-16-2007 03:04 PM

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.

JackieBlue 11-19-2007 09:34 AM

Thanks very much! Exactly what I wanted. :)

All times are GMT -5. The time now is 07:59 PM.