Skip to content

Commit 9535896

Browse files
committed
[Rails5] BasicsTest#test_preserving_time_objects_with_time_with_zone_conversion_to_default_timezone_utc
1 parent 66b7f1e commit 9535896

File tree

1 file changed

+1
-1
lines changed
  • lib/active_record/connection_adapters/sqlserver/type

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver/type/datetime.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def quoted(value)
3535
private
3636

3737
def cast_value(value)
38-
super.try(:in_time_zone)
38+
is_utc? ? super.try(:in_time_zone) : super
3939
end
4040

4141
def fast_string_to_time(string)

0 commit comments

Comments
 (0)