summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-09-22 10:44:35 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-09-22 10:44:35 +0300
commitc2d624cace23e834238649ee1f96e71854d2bc63 (patch)
treeac4557e73b7fddb4cf322cdd195f270c9d08032e /src/components
parent3731ececbd603859fe83b49a2b19f33c2c3e43ec (diff)
downloadwebui-vue-c2d624cace23e834238649ee1f96e71854d2bc63.tar.xz
SILABMC-316: upd date and time by time zone
Diffstat (limited to 'src/components')
-rw-r--r--src/components/_sila/Mixins/TableFilterMixin.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/_sila/Mixins/TableFilterMixin.js b/src/components/_sila/Mixins/TableFilterMixin.js
index 295ca7e5..3295bc34 100644
--- a/src/components/_sila/Mixins/TableFilterMixin.js
+++ b/src/components/_sila/Mixins/TableFilterMixin.js
@@ -31,17 +31,23 @@ const TableFilterMixin = {
let startDateInMs = startDate ? startDate.getTime() : 0;
let endDateInMs = endDate ? endDate.getTime() : Number.POSITIVE_INFINITY;
- const isUtcDisplay = this.$store.getters['global/isUtcDisplay'];
+ // const isUtcDisplay = this.$store.getters['global/isUtcDisplay'];
//Offset preference selected
- if (!isUtcDisplay) {
+ /*if (!isUtcDisplay) {
startDateInMs = startDate
? startDate.getTime() + startDate.getTimezoneOffset() * 60000
: 0;
endDateInMs = endDate
? endDate.getTime() + endDate.getTimezoneOffset() * 60000
: Number.POSITIVE_INFINITY;
- }
+ }*/
+ startDateInMs = startDate
+ ? startDate.getTime() + startDate.getTimezoneOffset() * 60000
+ : 0;
+ endDateInMs = endDate
+ ? endDate.getTime() + endDate.getTimezoneOffset() * 60000
+ : Number.POSITIVE_INFINITY;
return tableData.filter((row) => {
const date = row[propertyKey];