Ver código fonte

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

version-14
Suraj Shetty 3 anos atrás
committed by GitHub
pai
commit
a55ef8477b
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      frappe/public/js/frappe/form/controls/date_range.js

+ 2
- 1
frappe/public/js/frappe/form/controls/date_range.js Ver arquivo

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


Carregando…
Cancelar
Salvar