From 49010986a1eb9d84e23b4f92ff5d99a9ffa68b2f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 24 Jan 2023 23:40:15 +0000 Subject: [PATCH] case 4395 --- src/components/date-control.vue | 10 ++++++++-- src/components/time-control.vue | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/date-control.vue b/src/components/date-control.vue index e6982e5..52e7a89 100644 --- a/src/components/date-control.vue +++ b/src/components/date-control.vue @@ -113,9 +113,15 @@ export default { }, methods: { setToday() { - const v = window.$gz.locale - .nowUTC8601String(this.timeZoneName) + //Was this but in afternoon shows the next day ?!? + // const v = window.$gz.locale + // .nowUTC8601String(this.timeZoneName) + // .split("T")[0]; + + const v = window.$gz.DateTime.local() + .toString() .split("T")[0]; + this.updateDateValue(v); this.dlgdate = false; }, diff --git a/src/components/time-control.vue b/src/components/time-control.vue index a1d09fb..a4c20f2 100644 --- a/src/components/time-control.vue +++ b/src/components/time-control.vue @@ -113,6 +113,7 @@ export default { }, methods: { setNow() { + //was this but works the more simpler way copied from set today // const v = window.$gz.locale // .nowUTC8601String(this.timeZoneName) // .split("T")[1];