Shopify/active_merchant — pull request #1105 by jwarchol (2014-04-04 21:46:28+00:00)
Title: PayPal Express integration: Further fixes received_at

Based on @martikaljuve's comment on #542 I have put together this PR to help address a problem with the parsing of payment_date from IPN messages.

The test data originally was asserting that "15:23:54 Apr 15, 2005 PDT" (the afternoon on in San Francisco) is the same moment as eight in the morning UTC, which is not the case. 10:23:54PM (22:23:54 in 24hr) is the correct value. I've corrected and amended the tests with accurate values, also testing crossing months. A little better, but not exhaustive. I just wanted to make sure it worked right for PDT and PST, which so far seems like the only timezones PayPal sends.

Tested in MRI 1.9.3-p484 and 2.0.0-p195 (happened to be what I had).