I couldn't find anything in the php.ini file to account for this. I am running PHP 5.2.10. I've never actually updated it myself so the software updater updated it at some point. I did a little test and found out that date(:Y",$timestamp) returns 0000. However, date("y", $timestamp) returns the two digit year properly. So it seems there is an issue with the four digit year.

Thanks!
Floyd

On Oct 4, 2009, at 2:14 PM, Andrea Giammarchi wrote:

Did the OS update changed the default locale settings or the default date format?

> From: fres...@adex-intl.com
> To: php-general@lists.php.net
> Date: Sun, 4 Oct 2009 14:05:05 -0400
> Subject: [PHP] strtotime strangeness
>
> For some reason the strtotime is no longer returning the year
> portion. For example, strtotime("10/04/2009") will result in a date
> of 0000-10-04. This started happening recently and I haven't done any
> updates other than the normal OS updates. I am running Mac OS X
> 10.5.8. Does anyone have any ideas or do I just need to install the
> latest version of PHP?
>
> Thanks!
> Floyd
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Windows Live: Make it easier for your friends to see what you’re up to on Facebook.

Reply via email to