-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Labels
inactive-issue?This issue should be closed within 2 weeks of the most recent comment due to inactivityThis issue should be closed within 2 weeks of the most recent comment due to inactivity
Description
I faced to following issue with local timezone using mysql
http://stackoverflow.com/questions/26515700/mysql-jdbc-driver-5-1-33-time-zone-issue
And I did some workaround for that:
(def db-params (mysql {:host "localhost"
:db "itservice"
:user "root"}))
(def extra-params {:useLegacyDatetimeCode false
:serverTimezone "UTC"
:useSSL false})
(def subparams (->> (map (fn [[k v]] (str (name k) "=" v)) extra-params)
(clojure.string/join "&")
(str "?")))
(def new-params (update db-params :subname #(str % subparams)))
(defdb my-db new-params)
so params string should look something like "//localhost:3306/itservice?useLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=false", and there is no support for such extra parameters for db-params.
Metadata
Metadata
Assignees
Labels
inactive-issue?This issue should be closed within 2 weeks of the most recent comment due to inactivityThis issue should be closed within 2 weeks of the most recent comment due to inactivity