RE: DST
> > Hi everyone, > > I'm still having an issue with the new daylight saving- > > I ran tzsetup entered the appropriate zone- but when I reboot > the machine it still in the old time zone- > > Is there a patch for freebsd 5.4 > Paste the results of: zdump -v /etc/localtime | grep 2007 & date /etc/localtime Sun Apr 1 06:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 EST isdst=0 gmtoff=-18000 /etc/localtime Sun Apr 1 07:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 EDT isdst=1 gmtoff=-14400 /etc/localtime Sun Oct 28 05:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 EDT isdst=1 gmtoff=-14400 /etc/localtime Sun Oct 28 06:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 EST isdst=0 gmtoff=-18000 Fri Mar 16 13:26:27 EST 2007 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST
Jean-Paul Natola wrote: Hi everyone, I'm still having an issue with the new daylight saving- I ran tzsetup entered the appropriate zone- but when I reboot the machine it still in the old time zone- Is there a patch for freebsd 5.4 Dan Busarow posted an excellent step by step earlier. I used it with success on version 4.8 to 6.2 with no problems (Except the AMD64 port which has a zdump problem). See below, DAve -- Grant, Search for an email I sent to the list on 2/22 with Subject Determining daylight savings changes on BSD It has the steps needed to update manually from source. Here's the steps If you can't use the ports to update your time zone files here is the manual procedure. 1. create a new directory and cd into it e.g. # mkdir myzoneinfo; cd myzoneinfo 2. # fetch ftp://elsie.nci.nih.gov/pub/tzdata2007c.tar.gz 3. # tar -zxvf tzdata2007c.tar.gz 4. you will now have a bunch of files in the directory extracted from tzdata2007b. you need to edit zone.tab and comment out these lines #AX +6006+01957 Europe/Mariehamn #GG +4927-00232 Europe/Guernsey #IM +5409-00428 Europe/Isle_of_Man #JE +4912-00207 Europe/Jersey #ME +4226+01916 Europe/Podgorica #RS +4450+02030 Europe/Belgrade #TL -0833+12535 Asia/Dili 5. run this command # zic -d ./zoneinfo -p America/Los_Angeles -m 0644 -y ./yearistype \ africa antarctica asia australasia etcetera europe \ factory northamerica southamerica systemv that's all one long line the zic command will create a new directory named zoneinfo and fill it with the new zoneinfo files. You can compare it to /usr/share/zoneinfo 6. install the new files by running # cp -R -p ./zoneinfo/ /usr/share/zoneinfo # cp ./zone.tab /usr/share/zoneinfo # tzsetup 7. to verify that all went well run # zdump -v /etc/localtime | grep 2007 your should get /etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800 /etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200 /etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 PDT isdst=1 gmtoff=-25200 /etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 PST isdst=0 gmtoff=-28800 I've done this on 1/2 dozen older 4.x and 5.x servers and it works fine. Dan -- -- Three years now I've asked Google why they don't have a logo change for Memorial Day. Why do they choose to do logos for other non-international holidays, but nothing for Veterans? Maybe they forgot who made that choice possible. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: DST
> > Hi everyone, > > I'm still having an issue with the new daylight saving- > > I ran tzsetup entered the appropriate zone- but when I reboot > the machine it still in the old time zone- > > Is there a patch for freebsd 5.4 > Paste the results of: zdump -v /etc/localtime | grep 2007 & date somebody posted this code before: fetch ftp://sunrise.ipinc.net/pub/tzdata2007c.tar.gz tar -xzf tzdata2007c.tar.gz zic -d zoneinfo northamerica cp -R zoneinfo/* /usr/share/zoneinfo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST issue (still one hour behind)
Le Lundi 12 Mars 2007 22:36, John Nielsen a écrit : > On Monday 12 March 2007 22:24, Peter wrote: > > Le Lundi 12 Mars 2007 21:52, John Nielsen a écrit : > > > On Monday 12 March 2007 21:43, Peter wrote: > > > > I rebuilt my 6.2 system entirely and ran tzsetup. My time is still > > > > one hour behind. What else do I need to do? > > > > > > If you run "date" with no arguments what timezone does it say? If it's > > > e.g. EDT (the D being for Daylight) then all you need to do is set the > > > time manually (assuming you updated in the last 36 hours or so, after > > > the time change). Otherwise I'd start with a reboot and then maybe play > > > with adjkerntz if that doesn't take care of it. > > > > I did reboot after using tzsetup. Anyway... > > > > $ date > > Mon Mar 12 21:22:22 EDT 2007 > > > > Change time manually you say? > > Yep! Since you probably had an out-of-date /etc/localtime at the time of > the (new) change your system didn't know to change the clock automatically. > > Going forward you shouldn't need to worry about it (unless lawmakers decide > to save even more energy in the future...). Ok. Done. Thanks for your support. Pedro ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST issue (still one hour behind)
On Monday 12 March 2007 22:24, Peter wrote: > Le Lundi 12 Mars 2007 21:52, John Nielsen a écrit : > > On Monday 12 March 2007 21:43, Peter wrote: > > > I rebuilt my 6.2 system entirely and ran tzsetup. My time is still > > > one hour behind. What else do I need to do? > > > > If you run "date" with no arguments what timezone does it say? If it's > > e.g. EDT (the D being for Daylight) then all you need to do is set the > > time manually (assuming you updated in the last 36 hours or so, after > > the time change). Otherwise I'd start with a reboot and then maybe play > > with adjkerntz if that doesn't take care of it. > > I did reboot after using tzsetup. Anyway... > > $ date > Mon Mar 12 21:22:22 EDT 2007 > > Change time manually you say? Yep! Since you probably had an out-of-date /etc/localtime at the time of the (new) change your system didn't know to change the clock automatically. Going forward you shouldn't need to worry about it (unless lawmakers decide to save even more energy in the future...). JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST issue (still one hour behind)
Le Lundi 12 Mars 2007 21:52, John Nielsen a écrit : > On Monday 12 March 2007 21:43, Peter wrote: > > I rebuilt my 6.2 system entirely and ran tzsetup. My time is still one > > hour behind. What else do I need to do? > > If you run "date" with no arguments what timezone does it say? If it's e.g. > EDT (the D being for Daylight) then all you need to do is set the time > manually (assuming you updated in the last 36 hours or so, after the time > change). Otherwise I'd start with a reboot and then maybe play with > adjkerntz if that doesn't take care of it. I did reboot after using tzsetup. Anyway... $ date Mon Mar 12 21:22:22 EDT 2007 Change time manually you say? Pedro ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST issue (still one hour behind)
On Monday 12 March 2007 21:43, Peter wrote: > I rebuilt my 6.2 system entirely and ran tzsetup. My time is still one > hour behind. What else do I need to do? If you run "date" with no arguments what timezone does it say? If it's e.g. EDT (the D being for Daylight) then all you need to do is set the time manually (assuming you updated in the last 36 hours or so, after the time change). Otherwise I'd start with a reboot and then maybe play with adjkerntz if that doesn't take care of it. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST on very old FreeBSD system
system that's chugging along happily on FreeBSD 2.2.8 -- to handle the new start and stop dates for Daylight Savings Time. There's no need to update the OS on the system, because it is firewalled from the Internet and runs the embedded hardware it has to run just fine. But it does need the clock to be right to perform scheduled tasks. If I simply copy /etc/localtime from a FreeBSD 6.1 system to that one, will it work? Or has the time zone file format changed at all? (I seem to recall that it was fixed by POSIX, but I don't know if versions of FreeBSD that old are POSIX-compliant.) there is 2.2.9 release on FTP. get base distribution and extract needed files - and be sure it will fit ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST on very old FreeBSD system
John: /etc/localtime on the 2.2.8 system begins with a series of nulls, not the string "TZif". However, some of our other clients have 4.x systems whose /etc/localtime files do begin with "TZif". If you could send or post the files for the MST7MDT zone in both formats, it'd be a great help. It'd be nice if administrators could just download the relevant files and drop them into /etc/localtime. Perhaps someone with the power to do so could upload the zones in both formats to directories on ftp.freebsd.org, so folks could bring in the zone(s) they needed via the "fetch" program. --Brett Glass At 02:27 PM 3/10/2007, John Levine wrote: >In article <[EMAIL PROTECTED]> you write: >>I've been asked to update a very old FreeBSD system -- an embedded >>system that's chugging along happily on FreeBSD 2.2.8 -- to handle >>the new start and stop dates for Daylight Savings Time. > >I just updated my antique BSDI 4.3 systems, and it turned out to take >about five minutes. > >See if your system has the zic time zone compiler installed, probably >in /usr/sbin or some place like that. If so, pick up the new source >file /usr/src/share/zoneinfo/northamerica from a current fbsd system, >become superuser, and run it through zic. It should automatically >install all of the updated files in the right place. > >If you can't find a copy of zic, you'll need to figure out whether >that version of fbsd uses the old or new timezone format. The old >format starts with a bunch of binary zeros, the new format with >the string TZif. > >If it uses the new format, just copy the timezone files from any other >fbsd system. If it uses the old format, drop me a line privately and >I'll send you the files from a bsdi box. > >R's, >John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DST on very old FreeBSD system
In article <[EMAIL PROTECTED]> you write: >I've been asked to update a very old FreeBSD system -- an embedded >system that's chugging along happily on FreeBSD 2.2.8 -- to handle >the new start and stop dates for Daylight Savings Time. I just updated my antique BSDI 4.3 systems, and it turned out to take about five minutes. See if your system has the zic time zone compiler installed, probably in /usr/sbin or some place like that. If so, pick up the new source file /usr/src/share/zoneinfo/northamerica from a current fbsd system, become superuser, and run it through zic. It should automatically install all of the updated files in the right place. If you can't find a copy of zic, you'll need to figure out whether that version of fbsd uses the old or new timezone format. The old format starts with a bunch of binary zeros, the new format with the string TZif. If it uses the new format, just copy the timezone files from any other fbsd system. If it uses the old format, drop me a line privately and I'll send you the files from a bsdi box. R's, John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"