plaid / plaid-ruby

Ruby bindings for Plaid

Home Page:https://plaid.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DateTime is deprecated

bdewater opened this issue · comments

Deprecated since Ruby 3.0: https://ruby-doc.org/stdlib-3.0.0/libdoc/date/rdoc/DateTime.html, also see the "When should you use DateTime and when should you use Time?" section.

Referenced here: https://github.com/plaid/plaid-ruby/blob/v17.0.0/README.md#dates

Used here:

when 'DateTime'
# parse date time (expecting ISO 8601 format)
DateTime.parse data

Instead of replacing with Time.parse it seems Time.iso8601 would be appropriate here and is more performant.