#21692 [Com]: Gmtime first argument doesn't support vars
| From: | alex at gameone dot nl | Date: | Thu, 16 Jan 2003 19:35:25 +0000 |
| Subject: | #21692 [Com]: Gmtime first argument doesn't support vars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30287@lists.php.net to get a copy of this message | ||
ID: 21692
Comment by: alex@gameone.nl
Reported By: alex@gameone.nl
Status: Open
Bug Type: Date/time related
Operating System: Win2k
PHP Version: 4.3.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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