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 70afb4d commit 5660ddfCopy full SHA for 5660ddf
lib/active_record/connection_adapters/cockroachdb/quoting.rb
@@ -50,6 +50,14 @@ def quote(value)
50
super
51
end
52
53
+
54
+ def quoted_date(value)
55
+ # CockroachDB differs from PostgreSQL in its representation of
56
+ # a `timestamp with timezone`, it does not always include the
57
+ # timezone offset (e.g. `+00`), so we need to add it here.
58
+ # This is tested by `BasicsTest#test_default_in_local_time`.
59
+ super + value.strftime("%z")
60
+ end
61
62
63
0 commit comments