(ns metabase.query-processor.middleware.add-timezone-info (:require [metabase.query-processor.timezone :as qp.timezone])) | |
(defn- add-timezone-metadata [metadata] (merge metadata {:results_timezone (qp.timezone/results-timezone-id)} (when-let [requested-timezone-id (qp.timezone/requested-timezone-id)] {:requested_timezone requested-timezone-id}))) | |
Add | (defn add-timezone-info [_query rff] (fn add-timezone-info-rff* [metadata] (rff (add-timezone-metadata metadata)))) |