Skip to content

Commit 2e0e65c

Browse files
authored
Merge pull request rails#52518 from ianfleeton/to_fs_tidy-todo
Complete #to_fs todo now that deprecation is gone
2 parents e6d78d9 + 94395f6 commit 2e0e65c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

activesupport/lib/active_support/time_with_zone.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ def to_fs(format = :default)
215215
elsif formatter = ::Time::DATE_FORMATS[format]
216216
formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter)
217217
else
218-
# Change to to_s when deprecation is gone.
219-
"#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}"
218+
to_s
220219
end
221220
end
222221
alias_method :to_formatted_s, :to_fs

0 commit comments

Comments
 (0)