Re: mktime error

From: Date: Mon, 05 Apr 2004 12:01:37 +0000
Subject: Re: mktime error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182350@lists.php.net to get a copy of this message
Your Server will most likely run in a different timezone. If both of you would use gmktime() the result will be the same. As for the negative result: Had the same problem some time ago - seams to me as if PHP doesn't like those 0,0,0 ( try 0,0,1 instead ) - You can adjust the result by reducing the result by 1 $var = mktime ( 0,0,0,4,4,2004 ) - 1 ; -- red Am Montag, 5. April 2004 12:29 schrieb Andy B: > "On my personal machine the return value is: > > 1081026000" > interesting... i got 1081054800 from mine with the code: > <? > $time=mktime(0,0,0,4,4,2004); > echo $time; > ?> > > even on cli it gives the same thing....

« previous php.general (#182350) next »