We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6d78d9 + 94395f6 commit 2e0e65cCopy full SHA for 2e0e65c
activesupport/lib/active_support/time_with_zone.rb
@@ -215,8 +215,7 @@ def to_fs(format = :default)
215
elsif formatter = ::Time::DATE_FORMATS[format]
216
formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter)
217
else
218
- # Change to to_s when deprecation is gone.
219
- "#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}"
+ to_s
220
end
221
222
alias_method :to_formatted_s, :to_fs
0 commit comments