     (when-let [latest-build-start (:latestBuildStart buildviz-status)]
       (tc/from-long latest-build-start))))
 
-(defn- get-start-date [buildviz-url]
-  (if-let [latest-sync-build-start (get-latest-synced-build-start buildviz-url)]
-    latest-sync-build-start
-    last-week))
+(defn- get-start-date [buildviz-url date-from-config]
+  (if (some? date-from-config)
+    date-from-config
+    (if-let [latest-sync-build-start (get-latest-synced-build-start buildviz-url)]
+      latest-sync-build-start
+      last-week)))
 
 
 (defn -main [& c-args]

            [clj-time
             [coerce :as tc]
             [core :as t]
             [local :as l]]
            [clojure.string :as string]
            [clojure.tools
             [cli :refer [parse-opts]]
             [logging :as log]]))

(def cli-options
  [["-b" "--buildviz URL" "URL pointing to a running buildviz instance"
    :id :buildviz-url
    :default "http://localhost:3000"]
   ["-h" "--help"]])

(defn usage [options-summary]

  (sort-by :timestamp builds))

(defn- sync-jobs [jenkins-url buildviz-url sync-start-time]
  (println "Jenkins" jenkins-url "-> buildviz" buildviz-url)
  (println (format "Finding all builds for syncing (starting from %s)..."
                 (tf/unparse (:date-time tf/formatters) sync-start-time)))
  (->> (api/get-jobs jenkins-url)
       (mapcat #(all-builds-for-job jenkins-url sync-start-time %))
       (progress/init "Syncing")
