|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-03-26 22:57 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
-Package: Built-in web server
+Package: Date/time related
[2014-03-26 22:57 UTC] aharvey@php.net
[2014-03-27 00:57 UTC] pedro dot bicudo at tgtconsult dot com dot br
-Status: Feedback
+Status: Open
[2014-03-27 00:57 UTC] pedro dot bicudo at tgtconsult dot com dot br
[2014-03-27 01:41 UTC] pedro dot bicudo at tgtconsult dot com dot br
[2014-03-28 18:24 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2014-03-28 18:24 UTC] johannes@php.net
[2014-03-28 19:27 UTC] pedro dot bicudo at tgtconsult dot com dot br
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
Description: ------------ Using amazon-linux-ami/2013.09; Linux 3.4.48-45.46.amzn1.x86_64 on x86_64. Date shown for user is wrong. To isolate any database error during test, I've created the date with php and then show the timestamp. Different versions of php show different results. Version 5.3.28 is the latest PHP available for his AWS instance. Apache 2.2.26. Test script: --------------- $date=date_create("2014-01-01");echo date_timestamp_get($date); $date=date_create("2014-06-14");echo date_timestamp_get($date); Expected result: ---------------- For date 2014-01-01: php 5.3.26 returns 1388534400 (correct result) php 5.3.28 returns 1388541600 For date 2014-01-01: php 5.3.26 returns 1402704000 (correct result) php 5.3.28 returns 1402714800