Re: Determining daylight savings changes on BSD
Hi, I just read through this entire thread and I have a couple of questions. I have several FreeBSD 5.4 systems. I did the date -r commands as suggested on one of these systems and it doesn't appear to switch over to daylight savings time on Sunday March 11 at 2 AM. I looked in /usr/ports/misc but there isn't a zoneinfo port (on this system). I searched a bit and found this: radius# find / -name zoneinfo -print /usr/share/zoneinfo /usr/compat/linux/usr/share/zoneinfo radius# find / -name tzsetup -print /usr/sbin/tzsetup Here's my question. tzsetup seems to already be on this system. I have not used it before, so am unfamiliar with it. Can I just run that now and make whatever changes are necessary to fix this system so that it recognises daylight savings changes? Or am I going to have to download some updated zone files first? In this thread, someone suggested doing the following: cd /usr/src/share/zoneinfo fetch ftp://elsie.nci.nih.gov/pub/tzdata2007a.tar.gz tar -zxvf tzdata2007a.tar.gz make make install cp -f /usr/share/zoneinfo/America/Los_Angeles /etc/localtime chmod 444 /etc/localtime I have attempted that, but when I unzip/untar tzdata2007b.tar.gz (there isn't an a file there anymore, just the b one), I get several files but there is no target for the make command. Are there any special considerations any of you might be aware of depending on what function my freebsd servers are serving? One does radius authentication using Free Radius, another is our web server (Apache2) and primary DNS (Bind 9), a third is a mail server (Sendmail). I'm sorry - I'm just kinda confused as to how I ought to handle this issue. Thanks, Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On Feb 22, 2007, at 9:33 AM, Lisa Casey wrote: Hi, I just read through this entire thread and I have a couple of questions. I have several FreeBSD 5.4 systems. I did the date -r commands as suggested on one of these systems and it doesn't appear to switch over to daylight savings time on Sunday March 11 at 2 AM. I looked in /usr/ports/misc but there isn't a zoneinfo port (on this system). I searched a bit and found this: Lisa, 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/tzdata2007b.tar.gz 3. # tar -zxvf tzdata2007b.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 radius# find / -name zoneinfo -print /usr/share/zoneinfo /usr/compat/linux/usr/share/zoneinfo radius# find / -name tzsetup -print /usr/sbin/tzsetup Here's my question. tzsetup seems to already be on this system. I have not used it before, so am unfamiliar with it. Can I just run that now and make whatever changes are necessary to fix this system so that it recognises daylight savings changes? Or am I going to have to download some updated zone files first? In this thread, someone suggested doing the following: cd /usr/src/share/zoneinfo fetch ftp://elsie.nci.nih.gov/pub/tzdata2007a.tar.gz tar -zxvf tzdata2007a.tar.gz make make install cp -f /usr/share/zoneinfo/America/Los_Angeles /etc/localtime chmod 444 /etc/localtime I have attempted that, but when I unzip/untar tzdata2007b.tar.gz (there isn't an a file there anymore, just the b one), I get several files but there is no target for the make command. Are there any special considerations any of you might be aware of depending on what function my freebsd servers are serving? One does radius authentication using Free Radius, another is our web server (Apache2) and primary DNS (Bind 9), a third is a mail server (Sendmail). I'm sorry - I'm just kinda confused as to how I ought to handle this issue. Thanks, Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On 2007/02/22 7:33, Lisa Casey seems to have typed: Hi, I just read through this entire thread and I have a couple of questions. I have several FreeBSD 5.4 systems. I did the date -r commands as suggested on one of these systems and it doesn't appear to switch over to daylight savings time on Sunday March 11 at 2 AM. I looked in /usr/ports/misc but there isn't a zoneinfo port (on this system). I searched a bit and found this: You may also consider updating your ports collection: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
Does anyone happen to know where to find the updated TZ data in old format? This is what 6.1 file(1) has to say about a zoneinfo file imported from one of my really old boxes: $ file PST8PDT PST8PDT: old timezone data ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On 2/2/07, John Nielsen [EMAIL PROTECTED] wrote: On Friday 02 February 2007 17:35, Dan Nelson wrote: Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of the upgrade :) If you don't want to upgrade, just install the misc/zoneinfo port and rerun tzsetup. The last bit (rerunning tzsetup(8)) is good advice for anyone who hasn't run it in a while. Upgrading from earlier versions of FreeBSD will install the new tzdata files but it will not touch /etc/localtime. That's great. Um, how can I run tzsetup non-interactively? It's going to be a pain updating all my systems if I have to walk through the menu on every one; and the man page didn't help at all. -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
--- Atom Powers [EMAIL PROTECTED] wrote: On 2/2/07, John Nielsen [EMAIL PROTECTED] wrote: On Friday 02 February 2007 17:35, Dan Nelson wrote: Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of the upgrade :) If you don't want to upgrade, just install the misc/zoneinfo port and rerun tzsetup. The last bit (rerunning tzsetup(8)) is good advice for anyone who hasn't run it in a while. Upgrading from earlier versions of FreeBSD will install the new tzdata files but it will not touch /etc/localtime. That's great. Um, how can I run tzsetup non-interactively? It's going to be a pain updating all my systems if I have to walk through the menu on every one; and the man page didn't help at all. It's not what I would call, non interactive, or even elegant, but below is what I have done on some systems. On others, I just installed a copy of the newly created /etc/localtime file. Maybe it will be useful to you. cd /usr/src/share/zoneinfo fetch ftp://elsie.nci.nih.gov/pub/tzdata2007a.tar.gz tar -zxvf tzdata2007a.tar.gz make make install cp -f /usr/share/zoneinfo/America/Los_Angeles /etc/localtime chmod 444 /etc/localtime Nicole -- The significant problems we face cannot be solved by the same level of thinking that created them -Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
In response to John Nielsen [EMAIL PROTECTED]: On Friday 02 February 2007 17:35, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: [snip] Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of the upgrade :) If you don't want to upgrade, just install the misc/zoneinfo port and rerun tzsetup. The last bit (rerunning tzsetup(8)) is good advice for anyone who hasn't run it in a while. Upgrading from earlier versions of FreeBSD will install the new tzdata files but it will not touch /etc/localtime. Is there a good reason why FreeBSD copies the file instead of making a symlink? Doesn't seem like the best idea to me. -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On Mon, Feb 05, 2007 at 02:38:54PM -0500, Bill Moran wrote: In response to John Nielsen [EMAIL PROTECTED]: On Friday 02 February 2007 17:35, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: [snip] Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of the upgrade :) If you don't want to upgrade, just install the misc/zoneinfo port and rerun tzsetup. The last bit (rerunning tzsetup(8)) is good advice for anyone who hasn't run it in a while. Upgrading from earlier versions of FreeBSD will install the new tzdata files but it will not touch /etc/localtime. Is there a good reason why FreeBSD copies the file instead of making a symlink? Doesn't seem like the best idea to me. One reason I can think of is that /usr might be on a separate partition, which isn't automatically mounted in single user mode. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpgPatl5KWfj.pgp Description: PGP signature
Re: Determining daylight savings changes on BSD
On Fri, 2 Feb 2007 22:06:42 -0500, John Nielsen [EMAIL PROTECTED] wrote: On Friday 02 February 2007 17:35, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: [..] That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 Yes, thanks, looks like I need to do that, how do I update my zoneinfo tables? Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of the upgrade :) If you don't want to upgrade, just install the misc/zoneinfo port and rerun tzsetup. The last bit (rerunning tzsetup(8)) is good advice for anyone who hasn't run it in a while. Upgrading from earlier versions of FreeBSD will install the new tzdata files but it will not touch /etc/localtime. I think that was likely why I followed someone(?)'s advice to link lrwxr-xr-x 1 root wheel 36 Apr 12 2006 /etc/localtime - /usr/share/zoneinfo/Australia/Sydney which continues to work despite several world upgrades, and despite living over 500 miles from Sydney :) Cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Determining daylight savings changes on BSD
I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 The Linux version spits out all years, hence the need for grep: [EMAIL PROTECTED] ~]# zdump -v US/Eastern |grep 2007 US/Eastern Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000 US/Eastern Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400 US/Eastern Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400 US/Eastern Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
In the last episode (Feb 02), Robert Fitzpatrick said: I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to update. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On Fri, Feb 02, 2007 at 10:36:37AM -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 I don't know how to read this. There was another command I saw a while back that gave similar looking information, but actually put out something for 2007. But, I can't find that mesage at the moment. That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to update. Are you sure? I see the EST where mine says EDT, but mine gives the exact same date/time information as you show above outside of the EST. If I subtract out exactly one day (86400 seconds) I get: Sun Mar 11 01:01:00 EST 2007which is just 59 minutes before the changeover. Then, if I add an hour (3600 seconds) I get: Sun Mar 11 03:01:00 EDT 2007 So, I would expect the non-updated system to give: Mon Mar 12 01:01:00 EST 2007 Or is something else really messed up? My system seems to be giving the correct current date/time. jerry -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
In the last episode (Feb 02), Jerry McAllister said: On Fri, Feb 02, 2007 at 10:36:37AM -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 I don't know how to read this. There was another command I saw a while back that gave similar looking information, but actually put out something for 2007. But, I can't find that mesage at the moment. That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to update. Are you sure? I see the EST where mine says EDT, but mine gives the exact same date/time information as you show above outside of the EST. If I subtract out exactly one day (86400 seconds) I get: Sun Mar 11 01:01:00 EST 2007which is just 59 minutes before the changeover. Then, if I add an hour (3600 seconds) I get: Sun Mar 11 03:01:00 EDT 2007 So you're saying that for dates on March 11 after 2AM, you get EDT, but on March 12 it's back to EST? That doesn't make sense :) I get: $ TZ=America/New_York ; export TZ $ date -r 1173592860 Sun Mar 11 01:01:00 EST 2007 $ date -r 1173596460 Sun Mar 11 03:01:00 EDT 2007 $ date -r 1173679260 Mon Mar 12 02:01:00 EDT 2007 $ So, I would expect the non-updated system to give: Mon Mar 12 01:01:00 EST 2007 Yes, that's what a system without the updated zoneinfo should print, I think. Or is something else really messed up? My system seems to be giving the correct current date/time. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On Fri, Feb 02, 2007 at 01:18:14PM -0600, Dan Nelson wrote: In the last episode (Feb 02), Jerry McAllister said: On Fri, Feb 02, 2007 at 10:36:37AM -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: some deleted I don't know how to read this. There was another command I saw a while back that gave similar looking information, but actually put out something for 2007. But, I can't find that mesage at the moment. That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to update. Are you sure? I see the EST where mine says EDT, but mine gives the exact same date/time information as you show above outside of the EST. If I subtract out exactly one day (86400 seconds) I get: Sun Mar 11 01:01:00 EST 2007which is just 59 minutes before the changeover. Then, if I add an hour (3600 seconds) I get: Sun Mar 11 03:01:00 EDT 2007 So you're saying that for dates on March 11 after 2AM, you get EDT, but on March 12 it's back to EST? That doesn't make sense :) I get: No. For March 12 I get what I expect - EDT. $ TZ=America/New_York ; export TZ $ date -r 1173592860 Sun Mar 11 01:01:00 EST 2007 $ date -r 1173596460 Sun Mar 11 03:01:00 EDT 2007 $ date -r 1173679260 Mon Mar 12 02:01:00 EDT 2007 $ Yes, that is exactly what I get and that seems right to me. I was just questioning the one first posted above that was: date -r 1173679260resulting in: Mon Mar 12 02:01:00 EST 2007 That would be the EDT figures, except it is labeled EST But, if it was really EST (and thus need the zonefile updated) I thought it would say: Mon Mar 12 01:01:00 EST 2007 So, I would expect the non-updated system to give: Mon Mar 12 01:01:00 EST 2007 Yes, that's what a system without the updated zoneinfo should print, I think. OK. So the earlier post must have been a typo. jerry Or is something else really messed up? My system seems to be giving the correct current date/time. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
In the last episode (Feb 02), Jerry McAllister said: On Fri, Feb 02, 2007 at 01:18:14PM -0600, Dan Nelson wrote: $ TZ=America/New_York ; export TZ $ date -r 1173592860 Sun Mar 11 01:01:00 EST 2007 $ date -r 1173596460 Sun Mar 11 03:01:00 EDT 2007 $ date -r 1173679260 Mon Mar 12 02:01:00 EDT 2007 $ Yes, that is exactly what I get and that seems right to me. I was just questioning the one first posted above that was: date -r 1173679260resulting in: Mon Mar 12 02:01:00 EST 2007 That would be the EDT figures, except it is labeled EST But, if it was really EST (and thus need the zonefile updated) I thought it would say: Mon Mar 12 01:01:00 EST 2007 Probably a bad cut'n'paste on my part. The important part is whether there's a D in the zone name. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 Yes, thanks, looks like I need to do that, how do I update my zoneinfo tables? esmtp# zdump -v EST5EDT | grep '200[67]' EST5EDT Sun Apr 2 06:59:59 2006 UTC = Sun Apr 2 01:59:59 2006 EST isdst=0 gmtoff=-18000 EST5EDT Sun Apr 2 07:00:00 2006 UTC = Sun Apr 2 03:00:00 2006 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 29 05:59:59 2006 UTC = Sun Oct 29 01:59:59 2006 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 29 06:00:00 2006 UTC = Sun Oct 29 01:00:00 2006 EST isdst=0 gmtoff=-18000 EST5EDT Sun Apr 1 06:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 EST isdst=0 gmtoff=-18000 EST5EDT Sun Apr 1 07:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 28 05:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 28 06:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 EST isdst=0 gmtoff=-18000 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
In the last episode (Feb 02), Robert Fitzpatrick said: On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 Yes, thanks, looks like I need to do that, how do I update my zoneinfo tables? Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of the upgrade :) If you don't want to upgrade, just install the misc/zoneinfo port and rerun tzsetup. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On Friday 02 February 2007 17:35, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 Yes, thanks, looks like I need to do that, how do I update my zoneinfo tables? Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of the upgrade :) If you don't want to upgrade, just install the misc/zoneinfo port and rerun tzsetup. The last bit (rerunning tzsetup(8)) is good advice for anyone who hasn't run it in a while. Upgrading from earlier versions of FreeBSD will install the new tzdata files but it will not touch /etc/localtime. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]