Skip to content

Commit 94395f6

Browse files
committed
Complete #to_fs todo now that deprecation is gone
1 parent 8e4a3c0 commit 94395f6

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)