From afab91a2e1cac38d809810ca83b855de71c15bc0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 4 Feb 2022 00:38:56 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 3 +++ ayanova/src/components/date-control.vue | 1 + ayanova/src/components/date-time-control.vue | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index f919c8fc..caa652e1 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -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 + + diff --git a/ayanova/src/components/date-control.vue b/ayanova/src/components/date-control.vue index 23ed8b6f..e97c13b4 100644 --- a/ayanova/src/components/date-control.vue +++ b/ayanova/src/components/date-control.vue @@ -20,6 +20,7 @@ {{ diff --git a/ayanova/src/components/date-time-control.vue b/ayanova/src/components/date-time-control.vue index 6d5c98cf..c1c5ee45 100644 --- a/ayanova/src/components/date-time-control.vue +++ b/ayanova/src/components/date-time-control.vue @@ -21,6 +21,7 @@ {{ @@ -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; },