Skip to content

Commit

Permalink
fix: disable conversion to user tz for sales order calender
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Nov 19, 2024
1 parent 495528a commit cdf098c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,10 @@ def get_events(start, end, filters=None):
""",
{"start": start, "end": end},
as_dict=True,
update={"allDay": 0},
update={
"allDay": 0,
"convertToUserTz": 0,
},
)
return data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ frappe.views.calendar["Sales Order"] = {
id: "name",
title: "customer_name",
allDay: "allDay",
convertToUserTz: "convertToUserTz",
},
gantt: true,
filters: [
Expand Down

0 comments on commit cdf098c

Please sign in to comment.