   'mine': ->
     Meteor.user()?.profile?.events.indexOf(@_id) > -1
   'when': ->
-    dateStart = moment(@date_start, "YYYY-MM-DD")
-    timeStart = moment(@time_start, "hh-mm")
-
-    dateEnd = moment(@date_end, "YYYY-MM-DD")
-    timeEnd = moment(@time_end, "hh-mm")
-
-    from = dateStart.hour(timeStart.hour()).minute(timeStart.minute())
-    to = dateEnd.hour(timeEnd.hour()).minute(timeEnd.minute())
-
-    "#{from.format('lll')} - #{to.format('lll')}"
+    "#{moment(@from).calendar()} - #{moment(@to).calendar()}"
 
 Template.all.helpers
   'all_events': -> Events.find().fetch()

    if _.contains categories, name
      return "selected"
    else return ""

Template.event_form.rendered = ->
  $(".categories-chooser").chosen()

parseEventFromForm = (form) ->
  event = form.serializeObject()
  event.categories = fix_categories(event.categories)

  dateStart = moment(event.date_start, DATE_FORMAT)
  timeStart = moment(event.time_start, TIME_FORMAT)

  delete event['date_start']
  delete event['time_start']

  event.from = dateStart
    .hour(timeStart.hour())
    .minute(timeStart.minute())
    .toDate()

  dateEnd = moment(event.date_end, DATE_FORMAT)
  timeEnd = moment(event.time_end, TIME_FORMAT)

  delete event['date_end']
  delete event['time_end']

  event.to = dateEnd
    .hour(timeEnd.hour())
    .minute(timeEnd.minute())
    .toDate()

  console.log event.from, event.to

  return event

Template.new.events
