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
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
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)'**
});
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.