Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime is deprecated #446

Open
bdewater opened this issue Nov 2, 2022 · 0 comments
Open

DateTime is deprecated #446

bdewater opened this issue Nov 2, 2022 · 0 comments

Comments

@bdewater
Copy link

bdewater commented Nov 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant