Skip to content

Commit d904bac

Browse files
committed
Bump deprecation message to 8.1
1 parent d0c9621 commit d904bac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

activesupport/lib/active_support.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ def self.to_time_preserves_timezone
118118
def self.to_time_preserves_timezone=(value)
119119
if !value
120120
ActiveSupport.deprecator.warn(
121-
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.0. " \
121+
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1. " \
122122
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
123123
)
124124
elsif value != :zone
125125
ActiveSupport.deprecator.warn(
126-
"`to_time` will always preserve the full timezone rather than offset of the receiver in Rails 8.0. " \
126+
"`to_time` will always preserve the full timezone rather than offset of the receiver in Rails 8.1. " \
127127
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
128128
)
129129
end

activesupport/lib/active_support/core_ext/date_and_time/compatibility.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def self.preserve_timezone # :nodoc:
2626
# Only warn once, the first time the value is used (which should
2727
# be the first time #to_time is called).
2828
ActiveSupport.deprecator.warn(
29-
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.0." \
29+
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1." \
3030
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
3131
)
3232

0 commit comments

Comments
 (0)