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)




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to