                           :submitted? false
                           :form-at-submit-time nil
                           :selected-task {}
-                          :post-entry-form {:startTime ""
-                                            :endTime ""
-                                            :isBillable false
+                          :post-entry-form {:start-time ""
+                                            :end-time ""
+                                            :billable? false
                                             :comment ""
                                             :entry-id "new"})
 

    {:selected-task {:task-id (:task-id entry)
                     :project-id (:project-id entry)}
     :selected-date {:date (unix->date-str (:from entry))}
     :post-entry-form {:isBillable (:billable? entry)
                       :comment (:comment entry)
                       :startTime (unix->time-str (:from entry))
                       :endTime (unix->time-str (:till entry))
                       :entry-id (:entry-id entry)}}))

(defn form->data-entry [form]


(defn form-get-editing-entry [form]
  (let [form (-> form
                 (update-in [:post-entry-form :start-time] expand-time)
                 (update-in [:post-entry-form :end-time] expand-time))]
    (when-not (seq (form-validate-form form))
      (form->data-entry form))))

