Add full day name to app header for single day view

This commit is contained in:
nathangray 2017-11-16 14:38:28 -07:00
parent 5358805479
commit 991748e152

View File

@ -3893,7 +3893,9 @@ jQuery.extend(app.classes.calendar,{
views: { views: {
day: app.classes.calendar.prototype.View.extend({ day: app.classes.calendar.prototype.View.extend({
header: function(state) { header: function(state) {
return app.calendar.View.header.call(this, state); var formatDate = new Date(state.date);
formatDate = new Date(formatDate.valueOf() + formatDate.getTimezoneOffset() * 60 * 1000);
return date('l, ',formatDate) + app.calendar.View.header.call(this, state);
}, },
etemplates: ['calendar.view','calendar.todo'], etemplates: ['calendar.view','calendar.todo'],
start_date: function(state) { start_date: function(state) {