This commit is contained in:
2020-04-02 14:21:16 +00:00
parent a81ee7d204
commit 79d52064f3
7 changed files with 89 additions and 89 deletions

View File

@@ -68,7 +68,7 @@ export default {
date() {
//this tortuous fuckery is required so that the input and change events only fire on a real change, not initial page load
//also it shouldn't signal a change if the values are the same and nothing was effectively changed
var hasChanged = false;
let hasChanged = false;
if (this.date != this.oldDate) {
hasChanged = true;
}
@@ -115,7 +115,7 @@ export default {
},
set(value) {
//2017-08-15T12:10:34.4443084+03:00
var TimePortion = this.timeOnly;
let TimePortion = this.timeOnly;
if (!TimePortion) {
TimePortion = "00:00:00";
}
@@ -135,15 +135,15 @@ export default {
);
},
set(value) {
var DatePortion = this.dateOnly;
let DatePortion = this.dateOnly;
if (!DatePortion) {
var v = new Date();
var fullYear = v.getFullYear();
var fullMonth = v.getMonth() + 1;
let v = new Date();
let fullYear = v.getFullYear();
let fullMonth = v.getMonth() + 1;
if (fullMonth < 10) {
fullMonth = "0" + fullMonth.toString();
}
var fullDay = v.getDate();
let fullDay = v.getDate();
if (fullDay < 10) {
fullDay = "0" + fullDay.toString();
}