|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-29 12:48 UTC] derick@php.net
[2009-05-29 13:34 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
Description: ------------ strtotime changes the year to the current year with a date formatted like "17 July, 2004". Reproduce code: --------------- print strftime("%d %B, %Y", strtotime("July 17, 2004")); print strftime("%d %B, %Y", strtotime("17 July, 2004")); // <--- print strftime("%d %B, %Y", strtotime("17 July 2004")); Expected result: ---------------- 17 July, 2004 17 July, 2004 17 July, 2004 Actual result: -------------- 17 July, 2004 17 July, 2009 17 July, 2004