lib/sendgrid_toolkit/unsubscribes.rb in sendgrid_toolkit-1.3.0 vs lib/sendgrid_toolkit/unsubscribes.rb in sendgrid_toolkit-1.4.0
- old
+ new
@@ -19,10 +19,10 @@
def retrieve_with_timestamps(options = {})
options.merge! :date => 1
response = retrieve options
response.each do |unsubscribe|
- unsubscribe['created'] = Time.parse(unsubscribe['created']) if unsubscribe.has_key?('created')
+ unsubscribe['created'] = Time.parse(unsubscribe['created']+' UTC') if unsubscribe.has_key?('created')
end
response
end
end
end
\ No newline at end of file