This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<v-date-picker
|
||||
:value="dateValue"
|
||||
:locale="languageName"
|
||||
show-adjacent-months
|
||||
@input="updateDateValue"
|
||||
>
|
||||
<v-btn text color="primary" @click="$emit('input', null)">{{
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<v-date-picker
|
||||
:value="dateValue"
|
||||
:locale="languageName"
|
||||
show-adjacent-months
|
||||
@input="updateDateValue"
|
||||
>
|
||||
<v-btn text color="primary" @click="$emit('input', null)">{{
|
||||
@@ -157,14 +158,31 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
setToday() {
|
||||
var tmp = window.$gz.DateTime.local()
|
||||
.setZone(this.timeZoneName)
|
||||
.toUTC()
|
||||
.toString();
|
||||
console.log(tmp);
|
||||
|
||||
// console.log("setToday", {
|
||||
// tz: this.timeZoneName,
|
||||
// now: window.$gz.locale.nowUTC8601String(this.timeZoneName)
|
||||
// });
|
||||
const v = window.$gz.locale
|
||||
.nowUTC8601String(this.timeZoneName)
|
||||
.split("T")[0];
|
||||
|
||||
//console.log("end result:", v);
|
||||
this.updateDateValue(v);
|
||||
this.dlgdate = false;
|
||||
},
|
||||
setNow() {
|
||||
// console.log("setNow", {
|
||||
// tz: this.timeZoneName,
|
||||
// now: window.$gz.locale.nowUTC8601String(this.timeZoneName)
|
||||
// });
|
||||
const v = window.$gz.locale.nowUTC8601String().split("T")[1];
|
||||
//console.log("end result:", v);
|
||||
this.updateTimeValue(v);
|
||||
this.dlgtime = false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user