Bug #62610 [Opn->Fbk]: date('l, F m, Y') function outputs wrong date
| From: | aharvey@php.net | Date: | Fri, 20 Jul 2012 01:25:42 +0000 |
| Subject: | Bug #62610 [Opn->Fbk]: date('l, F m, Y') function outputs wrong date | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172091@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62610&edit=1
ID: 62610
Updated by: aharvey@php.net
Reported by: jason at jasonbutz dot info
Summary: date('l, F m, Y') function outputs wrong date
-Status: Open
+Status: Feedback
Type: Bug
-Package: *General Issues
+Package: Date/time related
Operating System: Linux
PHP Version: 5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built:
Jun 19 2012 03:21:35)
Block user comment: N
Private report: N
New Comment:
I can't reproduce this at all on current versions of PHP 5.3 or 5.4. Is that really the output
you're getting with that exact script?
Also, please see if you can replicate this without Suhosin on the current version of PHP 5.3; ie
5.3.15.
Pastebins of working code:
5.3: http://codepad.viper-7.com/DIzp07
5.4: http://codepad.viper-7.com/uXv3EY
Previous Comments:
------------------------------------------------------------------------
[2012-07-19 13:32:30] jason at jasonbutz dot info
Correcting PHP version
------------------------------------------------------------------------
[2012-07-19 13:31:04] jason at jasonbutz dot info
Description:
------------
When I use the date function with the included arguments the date is always output
as "Thursday, July 07, 2012" when using the default timestamp.
Test script:
---------------
<?php
echo "Today is ".date('m/d/Y')."\n";
echo date('l, F m, Y')."\n";
echo date('l, F m, Y', time())."\n";
echo date('l, F m, Y', strtotime("01/01/2012"));
?>
Expected result:
----------------
date('l, F m, Y') to show the current date, not Thursday, July 07, 2012
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62610&edit=1