                                                episode-number)}))
         format-date (fn [row]
                       (assoc row :date
-                             (f/unparse date-formatter
-                                        (c/from-sql-date (:date row)))))]
+                             (format-as-local-date (:date row))))]
     (first (map format-date results))))
 
 (defn get-episode-tracks

                           (kc/order :number :DESC))
        format-date (fn [row]
                      (assoc row :date
                             (f/unparse date-formatter
                                        (c/from-sql-date (:date row)))))]
    (map format-date results)))

(defn get-episode-basic-data

            [clojure.java.jdbc :as j]
            [clj-time.format :as f]
            [clj-time.coerce :as c]
            [clj-time.local :as l]
            [clj-time.jdbc]
            [ktra-indexer.config :as cfg])
  (:import org.joda.time.format.DateTimeFormat))

(let [db-host (get (System/getenv)
                   "OPENSHIFT_POSTGRESQL_DB_HOST"
