Edit report at https://bugs.php.net/bug.php?id=74807&edit=1
ID: 74807
Updated by: jhdxr@php.net
Reported by: ryanm352 at gmail dot com
Summary: Date
-Status: Open
+Status: Not a bug
Type: Bug
-Package: date_time
+Package: Date/time related
Operating System: RHEL 2.6.32-573.26.1.el6.x86_64
PHP Version: 5.6.30
Block user comment: N
Private report: N
New Comment:
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
timestamp 1498089600 is 2017 June 22 00:00:00 GMT, so for America/Chicago it's x 2017 June 21
19:00:00.
Previous Comments:
------------------------------------------------------------------------
[2017-06-23 13:51:32] ryanm352 at gmail dot com
Description:
------------
date() returns wrong date.
Test script:
---------------
<?php
date_default_timezone_set('America/Chicago');
echo date('l, F j, Y', 1498089600);
?>
Expected result:
----------------
Thursday, June 22, 2017
Actual result:
--------------
Wednesday, June 21, 2017
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74807&edit=1