Date: Mon, 14 Feb 2005 22:50:38 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable@freebsd.org Cc: Peter Jeremy <PeterJeremy@optushome.com.au> Subject: Re: mktime() bug? result strtotime() fail in PHP Message-ID: <200502142250.46036.doconnor@gsoft.com.au> In-Reply-To: <4210941E.7070202@corp.grupos.com.br> References: <420D3CB0.2030101@corp.grupos.com.br> <20050212205104.GF62061@cirb503493.alcatel.com.au> <4210941E.7070202@corp.grupos.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502142250.46036.doconnor>