This commit is contained in:
2020-07-14 15:19:30 +00:00
parent e9e2a94a4c
commit 21f7024ad9
3 changed files with 62 additions and 54 deletions

View File

@@ -87,7 +87,7 @@ export default {
},
readonlyFormat() {
return window.$gz.locale.utcDateToShortDateAndTimeLocalized(
this.internalValue,
this.value,
this.timeZoneName,
this.languageName,
this.hour12
@@ -95,34 +95,6 @@ export default {
},
updateValue() {
let vm = this;
// let dateValue = vm.$refs.dateField.$refs.input.value;
// let DatePortion = dateValue;
// if (!DatePortion) {
// let v = new Date();
// let fullYear = v.getFullYear();
// let fullMonth = v.getMonth() + 1;
// if (fullMonth < 10) {
// fullMonth = "0" + fullMonth.toString();
// }
// let fullDay = v.getDate();
// if (fullDay < 10) {
// fullDay = "0" + fullDay.toString();
// }
// DatePortion = fullYear + "-" + fullMonth + "-" + fullDay;
// }
// let timeValue = vm.$refs.timeField.$refs.input.value;
// let TimePortion = timeValue;
// if (!TimePortion) {
// TimePortion = "00:00:00";
// }
// let ret = window.$gz.locale.localTimeDateStringToUTC8601String(
// DatePortion + "T" + TimePortion,
// this.timeZoneName
// );
let dateValue = vm.$refs.dateField.$refs.input.value;
if (!dateValue) {
let v = new Date();