     (let [foxml (f/foxml mods oai_dcs full-file preview-file
                          {:uuid uuid 
                           :label "ahoj"
-                          :created (t/now)
-                          :last-modified (t/now)
+                          :created (lt/local-now)
+                          :last-modified (lt/local-now)
                           })
           out-file (io/file result-dir (str uuid ".xml"))
           ]
       (spit out-file (u/emit foxml))
-      (fs/copy-dir (io/file workdir "payload" "first-page") result-dir)
-      (fs/copy (io/file workdir "payload" "edeposit-url.txt") (io/file result-dir "edeposit-url.txt"))
+      (fs/copy-dir (io/file workdir "request" "payload" "first-page") result-dir)
+      (fs/copy (io/file workdir "request" "payload" "edeposit-url.txt") 
+               (io/file result-dir "edeposit-url.txt"))
       [uuid workdir])))
 
 (defn make-zip-package

(ns edeposit.amqp.kramerius.handlers
  (:require [me.raynes.fs :as fs]
            [langohr.basic     :as lb]
            [clojure.data.json :as json]
            [clojure.java.io :as io]
            [clojure.tools.logging :as log]
            [clojure.pprint :as pp]
            [clojure.data.json :as json]
            [clojure.data.xml :as xml]
            [clj-time.core :as t]
            [edeposit.amqp.kramerius.xml.mods :as m]
            [edeposit.amqp.kramerius.xml.foxml :as f]
            [edeposit.amqp.kramerius.xml.utils :as u]
            [clojure.java.shell :as shell]
            [clojurewerkz.serialism.core :as s]
            )
  (:import [org.apache.commons.codec.binary Base64])
  )


  (.mkdir (io/file workdir "marcxml2mods" "request"))

  [{:uuid (.toString workdir)}
   {:marc_xml (slurp (io/file workdir "request" "payload" "oai_marc.xml"))
    :uuid (slurp (io/file workdir "request" "payload" "uuid"))
    }])

(defn save-marcxml2mods-response
