I want to change the time format used in flat skin and display “10 am” instead “10:00”. How can I do this? Screenshot attached.
Hi,
add this template AFTER “scheduler.init()” method (otherwise the template will be over-written during initialization by “flat” theme) :
scheduler.templates.hour_scale = function(date){
var html = "<span class='dhx_scale_h'>"+ scheduler.date.date_to_str("%h")(date) +"</span>"+
"<span class='dhx_scale_m'> "+ scheduler.date.date_to_str("%a")(date) +"</span>";
return html;
};
scheduler.updateView();
Thanks!!