|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-01 12:37 UTC] php at dredzik dot pl
[2007-11-01 12:39 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 05:00:01 2025 UTC |
Description: ------------ I use this code to generate timestamp for current and last month and everything worked fine until yesterday (31 October 2007). Today everything came back to normal - but when I set the date to yesterday on my system it keeps getting back. Reproduce code: --------------- echo date('Y-m', strtotime('now')) . "\n"; echo date('Y-m', strtotime('-1 month')); Expected result: ---------------- 2007-10 2007-09 Actual result: -------------- 2007-10 2007-10