Fullcalendar show hour and minutes

0

My fullcalendar is displaying the event time, only for example: 08:00 (When is **: 00) and when it is 08:30 it shows the time with minutes.

I wanted to leave it showing the hours and minutes even when it is 08:00 not only when it is 08:30

    
asked by anonymous 10.04.2018 / 13:36

2 answers

0

Only add a timeFormat line in the calendar:

$('#calendario').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, defaultDate: '2016-01-12', editable: false, eventLimit: false, events: 'eventos.php',
eventColor: '#dd6777' **timeFormat: 'H(:mm)'** });

    
11.04.2018 / 16:08
0

Add to your personalizado.css within the /css folder the rewrite of the following css rule:

.fc-time-grid-event.fc-short .fc-time:before {
   content: attr(data-full);
}

This class defines the behavior of the element when there is an interval less than 1 hour between start and end. Basically it assigns to the element before the value of the data-full attribute. The default setting for this element works in a logical way. But just by making this change you will achieve the result.

    
10.04.2018 / 22:01