Skip to content
Snippets Groups Projects
Unverified Commit ad7c2a96 authored by Cam Saul's avatar Cam Saul Committed by GitHub
Browse files

Merge pull request #9248 from metabase/sqlserver-use-getdate-instead-of-getutcdate

SQL Server use getdate() instead of getutcdate()
parents 3e8121c2 a5ad20bd
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@
(hx/format "yyyy-01-01" expr)))
(defmethod driver/date-interval :sqlserver [_ unit amount]
(date-add unit amount :%getutcdate))
(date-add unit amount :%getdate))
(defmethod sql.qp/unix-timestamp->timestamp [:sqlserver :seconds] [_ _ expr]
;; The second argument to DATEADD() gets casted to a 32-bit integer. BIGINT is 64 bites, so we tend to run into
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment