Merge pull request #38425 from krishna-254/fix-calendar-end-date-issue
fix: adjust end date for all-day events in calendar
This commit is contained in:
commit
4b53fa7409
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