lib/active_merchant/billing/integrations/paypal/notification.rb in activemerchant-1.21.0 vs lib/active_merchant/billing/integrations/paypal/notification.rb in activemerchant-1.22.0
- old
+ new
@@ -52,10 +52,11 @@
# When was this payment received by the client.
# sometimes it can happen that we get the notification much later.
# One possible scenario is that our web application was down. In this case paypal tries several
# times an hour to inform us about the notification
def received_at
- Time.parse params['payment_date']
+ parsed_time_fields = DateTime._strptime(params['payment_date'], "%H:%M:%S %b %d, %Y %z")
+ Time.mktime(*parsed_time_fields.values_at(:year, :mon, :mday, :hour, :min, :sec, :zone))
end
# Status of transaction. List of possible values:
# <tt>Canceled-Reversal</tt>::
# <tt>Completed</tt>::