From owner-freebsd-current Tue Apr 9 23:40: 9 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.tgd.net (mail.tgd.net [209.81.25.10]) by hub.freebsd.org (Postfix) with ESMTP id E527A37B417 for ; Tue, 9 Apr 2002 23:40:05 -0700 (PDT) Received: by mail.tgd.net (Postfix, from userid 1001) id D026820F8C; Tue, 9 Apr 2002 23:40:05 -0700 (PDT) Date: Tue, 9 Apr 2002 23:40:05 -0700 From: Sean Chittenden To: current@FreeBSD.ORG Subject: mktime() doesn't fix deadzones... Message-ID: <20020409234005.V66679@ninja1.internal> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="N8ia4yKhAKKETby7" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-PGP-Key: 0x1EDDFAAD X-PGP-Fingerprint: C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD X-Web-Homepage: http://sean.chittenden.org/ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --N8ia4yKhAKKETby7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I haven't read POSIX yet, but mktime() fails on the boundary condition blackholes when timezones change. I just filed a patch for the PostgreSQL port so that it deals with this problem. http://www.freebsd.org/cgi/query-pr.cgi?pr=3D36954 I believe that Linux and SunOS handle this automatically and am wondering if FreeBSD should too (this was the 1st time the PostgreSQL guys had heard of this in over 6 years). I'm not a daylight savings expert, but am wondering what other people think. Seems like a good idea(TM) to me. For example (PST/PDT assumed): 2002-4-7 2:0:0.0 should be: 2002-4-7 3:0:0.0 Anyone object or have any thoughts? -sc --=20 Sean Chittenden --N8ia4yKhAKKETby7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iEYEARECAAYFAjyz3kUACgkQn09c7x7d+q2fUwCgoaLlCbWI+BpIbmelpAgHSFzk jikAn1wwNHembDCAtPHGcOnW6RMEux/x =75Zz -----END PGP SIGNATURE----- --N8ia4yKhAKKETby7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message