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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alex at gameone dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC