                                  (sort-by :scheduledDateTime))]
 
     (println "Go" selected-pipeline-group-names go-url "-> buildviz" buildviz-url)
-    (println "Syncing all builds starting from" (tf/unparse date-formatter load-builds-from))
+    (println "Syncing all builds starting from" (tf/unparse (:date-time tf/formatters) load-builds-from))
 
     (println (format "Found %s builds to be synced, starting" (count builds-to-be-synced)))
 

            (log/errorf "Unable to sync testresults for %s %s (status %s): %s" job-name build-no (:status data) (:body data))
            (log/errorf e "Unable to sync testresults for %s %s" job-name build-no)))))))

;; run

(defn -main [& c-args]

  [["-b" "--buildviz URL" "URL pointing to a running buildviz instance"
    :id :buildviz-url
    :default "http://localhost:3000"]
   ["-f" "--from DATE" "DATE from which on builds are loaded (by default tries to pick up where the last run finished)"
    :id :load-builds-from
    :parse-fn #(tf/parse date-formatter %)]
   ["-h" "--help"]])

;; util
