|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-29 15:26 UTC] sniper@php.net
[2005-08-06 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
Description: ------------ When I user the function strtotime on february, I get a wrong timestamp. Reproduce code: --------------- $timestamp = strtotime("1 february 2005"); $timestamp = strtotime("2 Monday", $timestamp); //No problem display "14-02-2005 -- Monday" echo date("d-m-Y -- l ", $timestamp); echo "<br />"; $timestamp = strtotime("1 february 2005"); $timestamp = strtotime("3 Monday", $timestamp); //Display 20-02-2005 -- Sunday instead of 21-02-2005 -- Monday echo date("d-m-Y -- l ", $timestamp); Expected result: ---------------- The second echo command should display the third Monday of february, but it displays Sunday.