|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-20 00:00 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Mar 18 01:00:01 2026 UTC |
Description: ------------ strtotime parses some forms of characters (probably as long as there is a separation with dots) to timestamps. If there's no real date, it fails to return false. date_default_timezone_set has been properly set Reproduce code: --------------- date_default_timezone_set('Europe/Amsterdam'); $time = strtotime("T.B.A."); var_dump($time); $time = strtotime("T.BA."); var_dump($time); $time = strtotime("TB.A."); var_dump($time); $time = strtotime("TBA"); var_dump($time); Expected result: ---------------- bool(false) bool(false) bool(false) bool(false) Actual result: -------------- int(somenumberthatchanges) int(somenumberthatchanges) bool(false) bool(false)