From owner-freebsd-stable@FreeBSD.ORG Mon Feb 14 12:21:32 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A39016A4CE for ; Mon, 14 Feb 2005 12:21:32 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFBFC43D49 for ; Mon, 14 Feb 2005 12:21:30 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j1ECKsNK089096; Mon, 14 Feb 2005 22:50:55 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Mon, 14 Feb 2005 22:50:38 +1030 User-Agent: KMail/1.7.92 References: <420D3CB0.2030101@corp.grupos.com.br> <20050212205104.GF62061@cirb503493.alcatel.com.au> <4210941E.7070202@corp.grupos.com.br> In-Reply-To: <4210941E.7070202@corp.grupos.com.br> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart35755459.TboKHaynIc"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502142250.46036.doconnor@gsoft.com.au> X-Spam-Score: -5.4 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Marcus Grando cc: Peter Jeremy Subject: Re: mktime() bug? result strtotime() fail in PHP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 12:21:32 -0000 --nextPart35755459.TboKHaynIc Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 14 Feb 2005 22:35, Marcus Grando wrote: > Hi, > > Peter Jeremy wrote: > > To be pedantic, FreeBSD 4.11 is correct and the others are wrong. If > > ^^^^^^ > Also FreeBSD 5.3-STABLE? > > > DST started at 2004-11-02 00:00 local time then you can't convert a loc= al > > time of 2004-11-02 00:00:00 because that time doesn't exist - your local > > time goes 2004-11-01 23:59:59, 2004-11-02 01:00:00, 2004-11-02 01:00:01. > > I know, but timestamp return is better of that -1. Not really.. You asked it to do an illegal operation. There are 2 choices - 1) return an= d=20 error, 2) have the computer try and guess what you really meant. 2 leads to all sorts of bad things like other programs working around it to= =20 get proper functionality etc.. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart35755459.TboKHaynIc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCEJed5ZPcIHs/zowRAi3oAJ9iv9OwKFgA4ARb1ELsmS0kkIZCBgCfVqoA 2Kd73or/eSCtihxNHJi7Sto= =Uw1D -----END PGP SIGNATURE----- --nextPart35755459.TboKHaynIc--