Skip to content

Conversation

@bdewater
Copy link
Contributor

Ruby recommends working with Time objects, unless you have a good reason to use DateTime: https://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/DateTime.html#class-DateTime-label-When+should+you+use+DateTime+and+when+should+you+use+Time-3F

This commit adds the missing converter for the common modern use case.

Ruby recommends working with Time objects, unless
you have a good reason to use DateTime:
https://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/DateTime.html#class-DateTime-label-When+should+you+use+DateTime+and+when+should+you+use+Time-3F

This commit adds the missing converter for the
common modern use case.
@bdewater
Copy link
Contributor Author

Addressed PR feedback and the CI failures on Ruby 2.5 and 2.6.

@kou kou merged commit 189851d into ruby:master Aug 21, 2024
@kou
Copy link
Member

kou commented Aug 21, 2024

Thanks.

@bdewater bdewater deleted the time-converter branch August 21, 2024 13:17
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

Successfully merging this pull request may close these issues.

2 participants