Edit report at https://bugs.php.net/bug.php?id=62610&edit=1

 ID:                 62610
 Updated by:         ahar...@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

Reply via email to