On 3/12/07, Albert Hopkins <[EMAIL PROTECTED]> wrote:
On Mon, 2007-03-12 at 06:44 -0700, Mark Knecht wrote:
> Hi all,
> One of my machines had problems with the early DST changes. I guess
> I hadn't updated something. The machine is our Myth backend server so
> it doesn't get as many updates as my desktop machines which had no
> problems.
>
> Yesterday I *think* I fixed it but I'm wondering what I Can do to
> test that it's *really* fixed without rebooting it. How can I test
> that NTP is working from the command line or with some small app?
>
Well, are you talking about NTP or your timezone data (NTP knows nothing
about timezones and vice versa). The timezone data is in the
timezone-data package (not surprisingly). My understanding is that if
you live in the United States and have any version released after 2005
you should be okay, but you can always see what your time zone data
looks like with the zdump(8) command.
--
Albert W. Hopkins
Yes, I saw Roger's post in another thread which I copied here. I did
all that and ran zdump. It looks similar to Rogers. I'm in California:
<QUOTE>
1) Sync.
(2) emerge timezone-data (should be >= 2006p)
(3) set TIMEZONE="Canada/Newfoundland" in /etc/conf.d/clock (adjust
for your local time zone).
(4) rm /etc/localtime && cp /usr/share/zoneinfo/Canada/Newfoundland
/etc/localtime (adjust for your local time zone).
(5) Check: zdump -v /etc/localtime | grep 2007.
For timezone-data = 2007c it shows:
/etc/localtime Sun Mar 11 03:30:59 2007 UTC = Sun Mar 11 00:00:59
2007 NST isdst=0
/etc/localtime Sun Mar 11 03:31:00 2007 UTC = Sun Mar 11 01:01:00
2007 NDT isdst=1
/etc/localtime Sun Nov 4 02:30:59 2007 UTC = Sun Nov 4 00:00:59
2007 NDT isdst=1
/etc/localtime Sun Nov 4 02:31:00 2007 UTC = Sat Nov 3 23:01:00
2007 NST isdst=0
<QUOTE>
And here is mine:
dragonfly ~ # zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59
2007 PST isdst=0
/etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00
2007 PDT isdst=1
/etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59
2007 PDT isdst=1
/etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00
2007 PST isdst=0
dragonfly ~ #
dragonfly ~ # date
Mon Mar 12 08:29:08 PDT 2007
dragonfly ~ #
The problem I'm having is that I don't know how to figure out if the
machine would have the correct date when I reboot.
thanks,
Mark
--
[email protected] mailing list