Re: Legal date generated from illegal date

From: Date: Fri, 13 Feb 2015 09:52:31 +0000
Subject: Re: Legal date generated from illegal date
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-82591@lists.php.net to get a copy of this message
On 13/02/15 04:03, Yasuo Ohgaki wrote: > I see controversial behavior here, unserialize raises error while new > DateTime('0000-00-00') doesn't. > > If it's a bug, I'll just file it as a bug. Yasuo Management of dates is controversial in a lot more areas than just using the wrong calendar in prior times ;) Each database uses it's own way to handle dates and time internally, and most default actions are different, add to which using second as the base for dates is just wrong anyway, but we have to live with what is currently available. The area that needs fixing first is the underlying OS functions rather than continually trying to patch the top level, but we perhaps need to document better just where the joins are ... just how many days were there from 0BC to today ... -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.internals (#82591) next »