|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-13 14:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Description: ------------ Strtotime should subtract exactly one month if the parameter is "last month" or "-1 month". Instead it subtracts 30 days. Reproduce code: --------------- // 1149022800 is the timestamp for 31 may 2006 echo date('d/m/Y',strtotime('last month',1149022800)); Expected result: ---------------- 30/04/2006 Actual result: -------------- 1/05/2006