HUGE REFACTOR / CLEANUP

if there is a issue it's probably something in here that was changed
This commit is contained in:
2021-09-28 20:19:44 +00:00
parent 51eddfede9
commit d0afdd9855
238 changed files with 3127 additions and 8614 deletions

View File

@@ -95,16 +95,13 @@
</div>
</template>
<script>
/* Xeslint-disable */
export default {
data: () => ({
dlgdate: false,
dlgtime: false,
//cache display format stuff
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
languageName: window.$gz.locale.getResolvedLanguage(),
hour12: window.$gz.locale.getHour12()
//defaultLocale: window.$gz.locale.ge tBrowserFirstLanguage().split("-", 1)[0]
}),
props: {
label: { type: String, default: null },
@@ -134,14 +131,14 @@ export default {
},
methods: {
setToday() {
let v = window.$gz.locale
const v = window.$gz.locale
.nowUTC8601String(this.timeZoneName)
.split("T")[0];
this.updateDateValue(v);
this.dlgdate = false;
},
setNow() {
let v = window.$gz.locale.nowUTC8601String().split("T")[1];
const v = window.$gz.locale.nowUTC8601String().split("T")[1];
this.updateTimeValue(v);
this.dlgtime = false;
},
@@ -177,10 +174,10 @@ export default {
this.dlgdate = false;
},
updateValue(theDate, theTime) {
let vm = this;
const vm = this;
if (!theDate) {
let v = new Date();
let fullYear = v.getFullYear();
const v = new Date();
const fullYear = v.getFullYear();
let fullMonth = v.getMonth() + 1;
if (fullMonth < 10) {
fullMonth = "0" + fullMonth.toString();
@@ -196,7 +193,7 @@ export default {
theTime = "00:00:00";
}
let ret = window.$gz.locale.localTimeDateStringToUTC8601String(
const ret = window.$gz.locale.localTimeDateStringToUTC8601String(
theDate + "T" + theTime,
vm.timeZoneName
);