Si vous constatez la perte de tickets, de commentaires ou de projets, veuillez consulter la page https://status.framasoft.org/incident/626.

Commit 7333d45c authored by Rémy Lebrun's avatar Rémy Lebrun

Fix today datepicker

parent 78c0c805
DateAndTimeInput = """
$(function () {
let Today = new Date(new Date().getFullYear(),
new Date().getMonth(),
new Date().getDate(),
23,59,59
)
$('.dateinput').datetimepicker({
useCurrent: false,
format: 'DD/MM/YYYY',
maxDate: Date.now(),
maxDate: Today,
showTodayButton: true,
showClear: true,
showClose: true
......@@ -18,10 +23,15 @@ DateAndTimeInput = """
DateInput = """
$(function () {
let Today = new Date(new Date().getFullYear(),
new Date().getMonth(),
new Date().getDate(),
23,59,59
)
$('.dateinput').datetimepicker({
useCurrent: false,
format: 'DD/MM/YYYY',
maxDate: Date.now(),
maxDate: Today,
showTodayButton: true,
showClear: true,
showClose: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment