#21692 [Opn->Bgs]: Gmtime first argument doesn't support vars

From: Date: Thu, 16 Jan 2003 21:20:54 +0000
Subject: #21692 [Opn->Bgs]: Gmtime first argument doesn't support vars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30296@lists.php.net to get a copy of this message
ID: 21692 Updated by: tularis@php.net Reported By: alex@gameone.nl -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Win2k PHP Version: 4.3.0 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php both linked scripts return Thu 01 Jan, 22:18 to me... I don't see the bug =) *closing* Previous Comments: ------------------------------------------------------------------------ [2003-01-16 13:35:25] alex@gameone.nl See: http://www.games-workshop.nl/forum-kloon/php/time.php http://www.games-workshop.nl/forum-kloon/php/time.txt http://www.games-workshop.nl/forum-kloon/php/time2.php http://www.games-workshop.nl/forum-kloon/php/time2.txt File with the .txt-extentions include the source because phps isn't configured. ------------------------------------------------------------------------ [2003-01-16 13:24:09] derick@php.net both show "Thu 01 Jan, 20:23" for me... Derick ------------------------------------------------------------------------ [2003-01-16 13:22:02] alex@gameone.nl gmtime sometimes doesn't support the first argument to be an var. Example: <?php $var = "D m M, G:i"; // Plus 3600 for Dutch-time print gmdate($var, time() + 3600); ?> Gives at this moment: Thu 01 Jan, 20:17 -------------------------------- <?php // Plus 3600 for Dutch-time print gmdate("D m M, G:i", time() + 3600); ?> Gives: Thu 16 Jan, 20:17 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21692&edit=1

« previous php.bugs (#30296) next »