def display_event_time(event, day)
      time = event.start_at
      if !event.all_day and time.to_date == day
        # try to make it display as short as possible
        format = (time.min == 0) ? "%l" : "%l:%M"
        t = time.strftime(format)
        am_pm = time.strftime("%p") == "PM" ? "p" : ""
        t += am_pm
        %(<span class="ec-event-time">#{t}</span>)
      else
        ""
      end
    end
def display_event_time(event, day)
      time = event.start_at
      if !event.all_day and time.to_date == day
        # try to make it display as short as possible
        format = (time.min == 0) ? "%l" : "%l:%M"
        t = time.strftime(format)
        am_pm = time.strftime("%p") == "PM" ? "p" : ""
        t += am_pm
        %(<span class="ec-event-time">#{t}</span>)
      else
        ""
      end
    end
default html for displaying an event's time
 to customize: override, or do something similar, in your helper
 for instance, you may want to add localization