php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21692 Gmtime first argument doesn't support vars
Submitted: 2003-01-16 13:22 UTC Modified: 2003-01-16 15:20 UTC
From: alex at gameone dot nl Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.0 OS: Win2k
Private report: No CVE-ID: None
 [2003-01-16 13:22 UTC] alex at gameone dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-16 13:24 UTC] derick@php.net
both show "Thu 01 Jan, 20:23" for me...

Derick
 [2003-01-16 15:20 UTC] tularis@php.net
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*
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 13:01:32 2024 UTC