Odoo Help


Calendar view (web calendar) shows allday items with UTC date [v9]

Mai Ecarde
on 8/17/16, 9:25 AM 779 views

Does anyone know if this is desired functionality (to work for multi-timezones)?

Is there a modification that can be made to webcalendar.js to change this behaviour?

Was thinking it would be modification of the following excerpt of code:

get_event_data: function(event) {
if (event.allDay) {
// Sometimes fullcalendar doesn't give any event.end.
if (event_end === null || _.isUndefined(event_end)) {
event_end = new Date(event.start);
if (this.all_day) {
date_start_day = new Date(Date.UTC(event.start.getFullYear(),event.start.getMonth(),event.start.getDate()));
date_stop_day = new Date(Date.UTC(event_end.getFullYear(),event_end.getMonth(),event_end.getDate()));
else {
date_start_day = new Date(event.start.getFullYear(),event.start.getMonth(),event.start.getDate(),7);
date_stop_day = new Date(event_end.getFullYear(),event_end.getMonth(),event_end.getDate(),19);
data[this.date_start] = time.datetime_to_str(date_start_day);
if (this.date_stop) {
data[this.date_stop] = time.datetime_to_str(date_stop_day);
diff_seconds = Math.round((date_stop_day.getTime() - date_start_day.getTime()) / 1000);

I don't want to modify the base code but I don't want to strip time from my allday events either...

Any suggestions?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/17/16, 9:25 AM
Seen: 779 times
Last updated: 8/17/16, 12:22 PM