Skip to content
Snippets Groups Projects
Commit 120db9f0 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

if no report timezone is set, use the JVM timezone for our QP datetime formatting.

parent 6db62459
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,10 @@
(for [row rows]
(for [v row]
(if (u/is-temporal? v)
(u/->iso-8601-datetime v report-timezone)
;; NOTE: if we don't have an explicit report-timezone then use the JVM timezone
;; this ensures alignment between the way dates are processed by JDBC and our returned data
;; GH issues: #2282, #2035
(u/->iso-8601-datetime v (or report-timezone (System/getProperty "user.timezone")))
v))))
(defn- post-format-rows
......
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