fix: adjust end date for all-day events in calendar
This commit is contained in:
parent
2ec2b7348f
commit
80d4c1f39d
1 changed files with 4 additions and 0 deletions
|
|
@ -417,6 +417,10 @@ frappe.views.Calendar = class Calendar {
|
|||
d.end = frappe.datetime.add_days(d.start, 1);
|
||||
}
|
||||
|
||||
if (d.allDay && d.end) {
|
||||
d.end = frappe.datetime.add_days(d.end, 1);
|
||||
}
|
||||
|
||||
me.prepare_colors(d);
|
||||
|
||||
d.title = frappe.utils.html2text(d.title);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue