PayPals IPN sends dates in this format 08:29:40 Aug 06, 2012 PDT
When I run it through strtotime() I get this in response 1344266980
When this goes through date() I get 2012-08-40 16:29:40.
What’s happening and how can I fix it.
The timezone is set in PHP to Europe/London.
Thanks.
Your date format string must be wrong. Are you by any chance calling
datelike so:If so, it should be
Y-m-d– quite possibly a typo.Reason I say this is because it’s simply impossible for
date()to return40for the day number.