strtotime strangeness
am 04.10.2009 20:05:05 von Floyd Resler
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
RE: strtotime strangeness
am 04.10.2009 20:14:14 von Andrea Giammarchi
--_8f360eba-ad92-4cde-b1d3-e43de02583f2_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Did the OS update changed the default locale settings or the default date f=
ormat?
> From: fresler@adex-intl.com
> To: php-general@lists.php.net
> Date: Sun=2C 4 Oct 2009 14:05:05 -0400
> Subject: [PHP] strtotime strangeness
>=20
> For some reason the strtotime is no longer returning the year =20
> portion. For example=2C strtotime("10/04/2009") will result in a date =20
> of 0000-10-04. This started happening recently and I haven't done any =20
> updates other than the normal OS updates. I am running Mac OS X =20
> 10.5.8. Does anyone have any ideas or do I just need to install the =20
> latest version of PHP?
>=20
> Thanks!
> Floyd
>=20
>=20
> --=20
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe=2C visit: http://www.php.net/unsub.php
>=20
=0A=
____________________________________________________________ _____=0A=
Windows Live: Make it easier for your friends to see what you=92re up to on=
Facebook.=0A=
http://www.microsoft.com/middleeast/windows/windowslive/see- it-in-action/so=
cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en -xm:SI_SB_2:092=
009=
--_8f360eba-ad92-4cde-b1d3-e43de02583f2_--
Re: strtotime strangeness
am 04.10.2009 21:01:30 von Floyd Resler
--Apple-Mail-1--649699501
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252;
format=flowed;
delsp=yes
I couldn't find anything in the php.ini file to account for this. I =20
am running PHP 5.2.10. I've never actually updated it myself so the =20
software updater updated it at some point. I did a little test and =20
found out that date(:Y",$timestamp) returns 0000. However, date("y",=20
$timestamp) returns the two digit year properly. So it seems there is =20=
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 =20=
> date format?
>
> > From: fresler@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 =20=
> 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=92re up =20=
> to on Facebook.
--Apple-Mail-1--649699501--
Re: strtotime strangeness
am 04.10.2009 21:06:51 von Tommy Pham
----- Original Message ----
> From: Floyd Resler
> To: Andrea Giammarchi
> Cc: php-general@lists.php.net
> Sent: Sun, October 4, 2009 12:01:30 PM
> Subject: Re: [PHP] strtotime strangeness
>
> 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
>
i hope :Y" is a typo in the email and not in your code.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: strtotime strangeness
am 04.10.2009 21:22:35 von Floyd Resler
Yeah, the ;Y" was a typo in my email. That's what happens while
trying to type while watching my Colts play!
Thanks!
Floyd
On Oct 4, 2009, at 3:06 PM, Tommy Pham wrote:
> ----- Original Message ----
>> From: Floyd Resler
>> To: Andrea Giammarchi
>> Cc: php-general@lists.php.net
>> Sent: Sun, October 4, 2009 12:01:30 PM
>> Subject: Re: [PHP] strtotime strangeness
>>
>> 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
>>
>
>
> i hope :Y" is a typo in the email and not in your code.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: strtotime strangeness
am 04.10.2009 21:24:55 von Eddie Drapkin
On Sun, Oct 4, 2009 at 3:22 PM, Floyd Resler wrote:
> Yeah, the ;Y" was a typo in my email. Â That's what happens while try=
ing to
> type while watching my Colts play!
>
> Thanks!
> Floyd
>
Go Colts!
At least you get to watch it, I have to follow along on sports sites!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: strtotime strangeness
am 04.10.2009 23:00:56 von Floyd Resler
Sorry to hear that! I live in Cincinnati so I normally don't get to
watch the Colts play when they are on at the same time as the
Bengals. But this week I did and, best of all, they won!
On Oct 4, 2009, at 3:24 PM, Eddie Drapkin wrote:
> On Sun, Oct 4, 2009 at 3:22 PM, Floyd Resler
> wrote:
>> Yeah, the ;Y" was a typo in my email. That's what happens while
>> trying to
>> type while watching my Colts play!
>>
>> Thanks!
>> Floyd
>>
>
> Go Colts!
>
> At least you get to watch it, I have to follow along on sports sites!
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: strtotime strangeness
am 05.10.2009 15:54:59 von Daniel Brown
On Sun, Oct 4, 2009 at 17:00, Floyd Resler wrote:
> Sorry to hear that! =A0I live in Cincinnati so I normally don't get to wa=
tch
> the Colts play when they are on at the same time as the Bengals. =A0But t=
his
> week I did and, best of all, they won!
Yeah, well, the Browns sure didn't, so bite me. I've got the
Vikes tonight, though.... going to be awesome!
In any case, as Andrea suggested, make sure your locale settings
haven't changed. Check:
.... and....
--=20
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: strtotime strangeness
am 05.10.2009 18:09:55 von Floyd Resler
Well that's odd. locale_get_default() gave me an undefined function
error. Apparently this year problem has been reported as a bug on bugs.php.net
but the status for it (and everything else) is Bogus. I'm not sure
if that means anything or not but hopefully a fix will be coming soon.
Thanks!
Floyd
On Oct 5, 2009, at 9:54 AM, Daniel Brown wrote:
> On Sun, Oct 4, 2009 at 17:00, Floyd Resler
> wrote:
>> Sorry to hear that! I live in Cincinnati so I normally don't get
>> to watch
>> the Colts play when they are on at the same time as the Bengals.
>> But this
>> week I did and, best of all, they won!
>
> Yeah, well, the Browns sure didn't, so bite me. I've got the
> Vikes tonight, though.... going to be awesome!
>
> In any case, as Andrea suggested, make sure your locale settings
> haven't changed. Check:
>
>
>
> .... and....
>
>
>
> --
>
> daniel.brown@parasane.net || danbrown@php.net
> http://www.parasane.net/ || http://www.pilotpig.net/
> Check out our great hosting and dedicated server deals at
> http://twitter.com/pilotpig
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: strtotime strangeness
am 05.10.2009 18:15:19 von List Manager
Floyd Resler wrote:
> Well that's odd. locale_get_default() gave me an undefined function
> error. Apparently this year problem has been reported as a bug on
> bugs.php.net but the status for it (and everything else) is Bogus. I'm
> not sure if that means anything or not but hopefully a fix will be
> coming soon.
>
You stated that you are running PHP 5.2.10 , too bad the function recommend
(locale_get_default()) is only available in PHP 5.3 or newer.
> Thanks!
> Floyd
>
> On Oct 5, 2009, at 9:54 AM, Daniel Brown wrote:
>
>> On Sun, Oct 4, 2009 at 17:00, Floyd Resler wrote:
>>> Sorry to hear that! I live in Cincinnati so I normally don't get to
>>> watch
>>> the Colts play when they are on at the same time as the Bengals. But
>>> this
>>> week I did and, best of all, they won!
>>
>> Yeah, well, the Browns sure didn't, so bite me. I've got the
>> Vikes tonight, though.... going to be awesome!
>>
>> In any case, as Andrea suggested, make sure your locale settings
>> haven't changed. Check:
>>
>>
>>
>> .... and....
>>
>>
>>
>> --
>>
>> daniel.brown@parasane.net || danbrown@php.net
>> http://www.parasane.net/ || http://www.pilotpig.net/
>> Check out our great hosting and dedicated server deals at
>> http://twitter.com/pilotpig
>>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: strtotime strangeness
am 05.10.2009 18:17:55 von Daniel Brown
On Mon, Oct 5, 2009 at 12:15, Jim Lucas wrote:
>
> You stated that you are running PHP 5.2.10 , too bad the function recommend
> (locale_get_default()) is only available in PHP 5.3 or newer.
That's my fault entirely, not Floyd's. I didn't look to see what
version of PHP he was running.
--
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php