From e53af4078c640ad7460963d70fbbfc057e05e910 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 16 Nov 2017 14:38:28 -0700 Subject: [PATCH] Add full day name to app header for single day view --- calendar/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 08048386e0..e8f6a5c591 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3893,7 +3893,9 @@ jQuery.extend(app.classes.calendar,{ views: { day: app.classes.calendar.prototype.View.extend({ 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'], start_date: function(state) {