From f78d0f95327ad1c103a85246acbc8bc9e8b871ba Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 2 Feb 2021 20:10:30 +0000 Subject: [PATCH] --- ayanova/src/api/locale.js | 13 +++++++++++++ ayanova/src/components/data-table.vue | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 014460a5..f33730dd 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -188,6 +188,19 @@ export default { .toString(); }, /////////////////////////////////////////////// + // Local now timestamp converted to timeZoneName + // and output as ISO 8601 + // (used to inform server of local client time) + // + clientLocalZoneTimeStamp(timeZoneName) { + if (!timeZoneName) { + timeZoneName = this.getBrowserTimeZoneName(); + } + return window.$gz.DateTime.local() + .setZone(timeZoneName) + .toString(); + }, + /////////////////////////////////////////////// // Get default start date time in api format // (this is used to centralize and for future) defaultStartDateTime(ofType) { diff --git a/ayanova/src/components/data-table.vue b/ayanova/src/components/data-table.vue index 91795966..29ca5018 100644 --- a/ayanova/src/components/data-table.vue +++ b/ayanova/src/components/data-table.vue @@ -518,7 +518,7 @@ export default { if (item.fk == "customername") { clr = "primary"; } - console.log("filter color:", { name: item.fk, clr: clr }); + return clr; }, keyArrayFromSortByArray(sortBy) { @@ -724,7 +724,7 @@ export default { dataListKey: vm.dataListKey, listView: untokenizedListView, clientCriteria: vm.clientCriteria, - clientTimeStamp: new Date() + clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp() }); if (res.error) {