|
@ -3,7 +3,10 @@ document.addEventListener("DOMContentLoaded", function() { |
|
|
var pError = document.querySelector("form p.red") |
|
|
var pError = document.querySelector("form p.red") |
|
|
|
|
|
|
|
|
if (inputDate.value != "") { |
|
|
if (inputDate.value != "") { |
|
|
inputDate.value = new Date(inputDate.value).toDateString().substring(4) |
|
|
|
|
|
|
|
|
var dateUTC = new Date(inputDate.value) |
|
|
|
|
|
var offset = dateUTC.getTimezoneOffset() |
|
|
|
|
|
|
|
|
|
|
|
inputDate.value = new Date(dateUTC.getTime() + (offset * 1000)).toDateString().substring(4) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
document.querySelector("form").onsubmit = function(ev) { |
|
|
document.querySelector("form").onsubmit = function(ev) { |
|
|