This commit is contained in:
2022-02-04 00:38:56 +00:00
parent 8c1ed95cb5
commit afab91a2e1
3 changed files with 22 additions and 0 deletions

View File

@@ -901,6 +901,9 @@ BUILD 8.0.0-beta.0.14 CHANGES OF NOTE
now ensures non ops api routes are disabled will return validation error, so user can do nothing until server open again then continue working
non ops users can not login during ops only state.
Ops users can do ops things during ops state but no business object stuff even if they ahve the role as that's controlled in each api route individually
- Changed Material date picker to show adjacent months days

View File

@@ -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)">{{

View File

@@ -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;
},