|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-04 00:02 UTC] derick@php.net
-Status: Open
+Status: Bogus
[2011-01-04 00:02 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 01:00:01 2025 UTC |
Description: ------------ <?php $today = getdate(); $firstDayOfCurrentMonth = date('o-m-d H:i:s', mktime(00, 00, 00, date("m"), 01 , $today['year'])); echo $firstDayOfCurrentMonth; ?> Test script: --------------- <?php $today = getdate(); $firstDayOfCurrentMonth = date('o-m-d H:i:s', mktime(00, 00, 00, date("m"), 01 , $today['year'])); echo $firstDayOfCurrentMonth; ?> Expected result: ---------------- expected output: 2011-01-01 00:00:00 Actual result: -------------- actual output: 2010-01-01 00:00:00