This commit is contained in:
2020-07-14 15:37:10 +00:00
parent 21f7024ad9
commit e76ac3d884
3 changed files with 59 additions and 64 deletions

View File

@@ -102,42 +102,10 @@ export default {
let ret = window.$gz.locale.localTimeDateStringToUTC8601String(
dateValue + "T" + timeValue,
this.timeZoneName
vm.timeZoneName
);
this.$emit("input", ret);
vm.$emit("input", ret);
}
}
// timeControlFormat() {
// //hh:mm:ss in 24 hour format
// return window.$gz.locale.utcDateStringToLocal8601TimeOnlyString(
// this.internalValue,
// this.timeZoneName
// );
// },
// handleTimeInput(value) {
// let DatePortion = window.$gz.locale.utcDateStringToLocal8601DateOnlyString(
// this.internalValue,
// this.timeZoneName
// );
// 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 newValue = window.$gz.locale.localTimeDateStringToUTC8601String(
// DatePortion + "T" + value,
// this.timeZoneName
// );
// this.$emit("input", newValue);
// }
// }
};
</script>