|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-16 20:58 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
Description: ------------ strtotime() returns the wrong timestamp. i cannot find a pattern to the errors. './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--enable-magic-quotes' '--with-mysql=/usr' '--with-pear' '--with-pgsql=/usr' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' Reproduce code: --------------- echo date("l",strtotime("1 Tuesday",1066323000))." ".strtotime("1 Tuesday",1066323000)."<br>"; echo date("l",strtotime("2 Tuesday",1066323000))." ".strtotime("2 Tuesday",1066323000)."<br>"; echo date("l",strtotime("+1 week",strtotime("Tuesday",1066323000)))." ".strtotime("Tuesday",1066323000); Expected result: ---------------- Tuesday 1066712400 Tuesday 1067361000 Tuesday 1066712400 Actual result: -------------- Tuesday 1066712400 Monday 1067317200 Tuesday 1066712400