We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f471cd4 commit 7c12bd4Copy full SHA for 7c12bd4
lib/active_record/connection_adapters/sqlserver/type/time.rb
@@ -36,9 +36,10 @@ def quoted(value)
36
37
def cast_value(value)
38
value = super
39
- return if value.blank?
40
41
- value = value.change year: 2000, month: 01, day: 01
+ return value unless value.is_a?(::Date)
+
42
+ value = value.change(year: 2000, month: 01, day: 01)
43
apply_seconds_precision(value)
44
end
45
0 commit comments