|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-13 17:12 UTC] metwo at gmx dot net
[2011-01-14 12:11 UTC] derick@php.net
-Status: Open
+Status: Bogus
[2011-01-14 12:11 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Mar 22 06:00:02 2026 UTC |
Description: ------------ parsing of "midnight first day last month" returns a wrong result in php 5.3.5 (worked correct in php 5.3.2) Test script: --------------- <?php print_r(date_create('midnight first day last month')); print date('Y-m-d H:i:s', strtotime('midnight first day last month')); Expected result: ---------------- DateTime Object ( [date] => 2010-12-01 00:00:00 [timezone_type] => 3 [timezone] => Europe/Berlin ) 2010-12-01 00:00:00 Actual result: -------------- DateTime Object ( [date] => 2010-12-14 00:00:00 [timezone_type] => 3 [timezone] => Europe/Berlin ) 2010-12-14 00:00:00