From 771f2d848386b32c12ec9b254a1c50a10833603b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 22 Jul 2021 23:35:05 +0000 Subject: [PATCH] --- ayanova/src/components/date-control.vue | 12 ++++++++++++ ayanova/src/components/date-time-control.vue | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/ayanova/src/components/date-control.vue b/ayanova/src/components/date-control.vue index a7d5a76c..70b16679 100644 --- a/ayanova/src/components/date-control.vue +++ b/ayanova/src/components/date-control.vue @@ -27,6 +27,11 @@ $ay.t("Delete") }} + what the fuck + {{ + $ay.t("Now") + }} + {{ $ay.t("OK") }} @@ -90,6 +95,13 @@ export default { } }, methods: { + setNow() { + let v = window.$gz.locale + .nowUTC8601String(this.timeZoneName) + .split("T")[0]; + this.updateDateValue(v); + this.dlgdate = false; + }, allErrors() { let ret = ""; diff --git a/ayanova/src/components/date-time-control.vue b/ayanova/src/components/date-time-control.vue index 2f4cdc03..761955b5 100644 --- a/ayanova/src/components/date-time-control.vue +++ b/ayanova/src/components/date-time-control.vue @@ -28,6 +28,10 @@ $ay.t("Delete") }} + {{ + $ay.t("Now") + }} + {{ $ay.t("OK") }} @@ -129,6 +133,13 @@ export default { } }, methods: { + setDateNow() { + let 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]; this.updateTimeValue(v);