Browse Source

fix: Set first day of the week for date range (#15669)

version-14
Suraj Shetty 3 years ago
committed by GitHub
parent
commit
a55ef8477b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      frappe/public/js/frappe/form/controls/date_range.js

+ 2
- 1
frappe/public/js/frappe/form/controls/date_range.js View File

@@ -11,7 +11,8 @@ frappe.ui.form.ControlDateRange = class ControlDateRange extends frappe.ui.form.
language: "en",
range: true,
autoClose: true,
toggleSelected: false
toggleSelected: false,
firstDay: frappe.datetime.get_first_day_of_the_week_index()
};
this.datepicker_options.dateFormat =
(frappe.boot.sysdefaults.date_format || 'yyyy-mm-dd');


Loading…
Cancel
Save