Re: strtotime()

From: Date: Thu, 14 Aug 2003 09:25:16 +0000
Subject: Re: strtotime()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159542@lists.php.net to get a copy of this message
My feeling is you should use gmmktime() if you use GMT in strtotime() Chris Boget wrote:
Yeah, but I missed something in my above example. If I did this: strtotime( '+1 month GMT', mktime( 0, 0, 0, 1, 1, 2003 )); It came back with 1/31/2003 and not 2/1/2003. Removing the GMT made it work. Your example works as well. In any case, the whole reason I'm delving into this is because strtotime() is exhibiting some odd behavior. Consider the following: (Note: you can see the values of all the variables in the output below)


« previous php.general (#159542) next »