mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update default date to now + 1 day
This commit is contained in:
parent
70532d50dc
commit
efb8844567
1 changed files with 2 additions and 2 deletions
|
|
@ -563,7 +563,7 @@ class AddBanModal {
|
|||
const dateOptions = {
|
||||
locale: "en",
|
||||
dateFormat: "m/d/Y H:i:S",
|
||||
defaultDate: false,
|
||||
defaultDate: Date.now() + 3600000 * 24,
|
||||
enableTime: true,
|
||||
enableSeconds: true,
|
||||
time_24hr: true,
|
||||
|
|
@ -577,7 +577,7 @@ class AddBanModal {
|
|||
|
||||
// Case pick is before current date
|
||||
if (pickStamp < nowStamp) {
|
||||
inpEl.setAttribute("data-timestamp", Date.now());
|
||||
inpEl.setAttribute("data-timestamp", Date.now() + 3600000 * 24);
|
||||
return instance.setDate(nowStamp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue