Paypal returns a timestamp in the following format:
yyyy-MM-ddTHH:mm:ssZ
And I don’t quite understand what to do with it ...
How can I convert it to yyyy-MM-dd HH: mm: ss using my local timezone in php?
I am tempted to preg_replace mysterious letters, but something tells me that there should be a better way. A difference of 8 hours also appears in my zone, and I'm not sure how to subtract it.
source share