Fix some Rails 7 deprecations for `Time#to_s(format)`
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Stan Hu