 
         timepickerEvents =
             'focus': ->
-                $(@).timepicker 'highlightHour'
+                 $(@).timepicker 'highlightHour'
             'timepicker.next': ->
                 $("[tabindex=#{+$(@).attr('tabindex') + 1}]").focus()
             'timepicker.prev': ->


    onSetStart: ->
        @model.setStart @formatDateTime @$('.input-start').val(),
                                        @$('.input-start-date').val()


    onSetEnd: ->

        @$container.toggleClass 'is-same-day', @model.isSameDay()


    formatDateTime: (timeStr = '', dateStr = '', end=true) ->
        t = timeStr.match /([0-9]{1,2}):([0-9]{2})\+?([0-9]*)/
        d = splitted = dateStr.match /([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/

        [hour, minute] = t[1..2] if t?[0]
        [date, month, year] = d[1..3] if d?[0]

        # Add a day later if event is all-day long and if it's and end date.
        if end
            date = +date + 1 if date and @model.isAllDay()

        month = +month - 1 if month # Months are 0 indexed in moment.js

        setObj = { hour, minute, date, month, year }
