              [admin :as admin]
              [ticket :as ticket]
              [events :as events]
-             [checkin :as checkin]]))
+             [checkin :as checkin]]
+            [clj-time
+             [format :as format]
+             [local :as local]]))
+
+(def format (format/formatter "yyyy-MM-dd HH:mm"))
+
+(defn- str->datetime [s]
+  (local/to-local-date-time (format/parse format s)))
 
 (defroutes ^:private admin-routes*
   (POST "/users" {{:keys [name password phone email]} :params}

          (when (and user (contains? ticket/ticket-types type))
            (ticket/add-ticket-to-user user type count)
            (let [tickets (ticket/available-tickets user)]
              (util/response-with-status true :tickets tickets))))))

(defn- wrap-check-admin [app]
  (fn [{:keys [user] :as req}]

(ns checkin-halake.routes.admin
  (:refer-clojure :exclude [format])
  (:require [compojure.core :refer [defroutes GET POST PUT]]
            [checkin-halake.util :as util]
            [checkin-halake.models
