note 88404 rejected from function.strtotime by danbrown

From: Date: Thu, 22 Jan 2009 16:45:16 +0000
Subject: note 88404 rejected from function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149666@lists.php.net to get a copy of this message
Note Submitter: shad at exprior dot com ---- I'm trying to add 29 years to the current date <?php list($m,$d,$y) = explode('-',date('m-d-Y')); $now = mktime(0, 0, 0, $m, $d, $y); $expires = strtotime("+29 year",$now); $_ = date("m-d-Y", intval($expires)); echo 'Expires on '.$_; ?> Result is 'Expires on 01-01-1970' The same code but with "+28 year" produces the expected rusult 'Expires on 01-22-2037'. Where is the problem? What have I missed? (php 5.2.6)

« previous php.notes (#149666) next »