Skip to content

Fix some Rails 7 deprecations for `Time#to_s(format)`

Stan Hu requested to merge sh-fix-rails-7-fs-deprecations-part1 into master

What does this MR do and why?

As mentioned in https://github.com/rails/rails/pull/43772 and https://github.com/rails/rails/pull/43772, Rails 7 has deprecated Time#to_s(format) in favor of Time#to_fs(format)`. This commit updates a subset of the files with this change and eliminates some deprecation warnings.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports