Re: Bug #4144 Updated: mktime() returns false value since 27th March 2000

From: Date: Fri, 14 Apr 2000 11:55:22 +0000
Subject: Re: Bug #4144 Updated: mktime() returns false value since 27th March 2000
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17904@lists.php.net to get a copy of this message
On Fri, 14 Apr 2000, CZEH Istvan wrote: > Bug Database wrote: > > > > ID: 4144 > > Updated by: jah > > Reported By: Istvan.Czeh@uti.hu > > Status: Closed > > Bug Type: Other > > Assigned To: > > Comments: > > > > It's not a bug (or, at least not a bug in PHP). Most European countries > > switched to summertime at 03.00, 26th of March, and moved the clocks one > > hour forward. So there really is only 23 hours between 2000-03-26 00:00:00 > > and 2000-03-27 00:00:00 in certain countries. If Hungary didn't switch to > > summertime, then the bug is either incorrect timezone setting on your part, or > > a bug in Debians timezone files. > > Thanx, I did not think of this. > Of course Hungary switched to summertime, but not on the 26th. When did Hungary then switch to summertime? And have you tested what results you get if you change the dates to match the date when Hungary switched to summertime? > Timezone setting is also good on my machine. I wrote some scripts and a > C program that does the same, but all returned the right value, except > PHP Now that is strange. Did you test PHP as an Apache module or as standalone interpreter from command line? Note that Apaches startup environment, especially timezone settings, may be something else than what you get when you are running from command line. Did some testing myself, running from command line. When my timezone is Europe/Helsinki, I get 23 hours difference, and switching to Europe/Tallinn, 24 hours (Estonians didn't switch to summertime), both are correct results. - Jouni Ahto Ah, ott Magyarországon már a nyár, itt pedig már nem esik a hó... :(

« previous php.dev (#17904) next »