File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
active_support/core_ext/date_and_time Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,12 @@ def self.to_time_preserves_timezone
118
118
def self . to_time_preserves_timezone = ( value )
119
119
if !value
120
120
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 . " \
122
122
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
123
123
)
124
124
elsif value != :zone
125
125
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 . " \
127
127
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
128
128
)
129
129
end
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def self.preserve_timezone # :nodoc:
26
26
# Only warn once, the first time the value is used (which should
27
27
# be the first time #to_time is called).
28
28
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 ." \
30
30
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
31
31
)
32
32
You can’t perform that action at this time.
0 commit comments