@yuuvis/client-core 2.3.25 → 2.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4891,21 +4891,27 @@ class SearchUtils {
|
|
|
4891
4891
|
switch (dateRange) {
|
|
4892
4892
|
case 'today': {
|
|
4893
4893
|
start = new Date();
|
|
4894
|
+
start.setHours(0, 0, 0, 0);
|
|
4894
4895
|
end = new Date();
|
|
4896
|
+
end.setHours(23, 59, 59, 999);
|
|
4895
4897
|
break;
|
|
4896
4898
|
}
|
|
4897
4899
|
case 'yesterday': {
|
|
4898
4900
|
const yesterday = new Date();
|
|
4899
4901
|
yesterday.setDate(yesterday.getDate() - 1);
|
|
4900
4902
|
start = yesterday;
|
|
4903
|
+
start.setHours(0, 0, 0, 0);
|
|
4901
4904
|
end = yesterday;
|
|
4905
|
+
end.setHours(23, 59, 59, 999);
|
|
4902
4906
|
break;
|
|
4903
4907
|
}
|
|
4904
4908
|
case 'thisWeek': {
|
|
4905
4909
|
const firstDay = new Date();
|
|
4906
4910
|
firstDay.setDate(firstDay.getDate() - firstDay.getDay());
|
|
4907
4911
|
start = firstDay;
|
|
4912
|
+
start.setHours(0, 0, 0, 0);
|
|
4908
4913
|
end = new Date();
|
|
4914
|
+
end.setHours(23, 59, 59, 999);
|
|
4909
4915
|
break;
|
|
4910
4916
|
}
|
|
4911
4917
|
case 'lastWeek': {
|
|
@@ -4914,14 +4920,18 @@ class SearchUtils {
|
|
|
4914
4920
|
const lastDay = new Date();
|
|
4915
4921
|
lastDay.setDate(lastDay.getDate() - lastDay.getDay() - 1);
|
|
4916
4922
|
start = firstDay;
|
|
4923
|
+
start.setHours(0, 0, 0, 0);
|
|
4917
4924
|
end = lastDay;
|
|
4925
|
+
end.setHours(23, 59, 59, 999);
|
|
4918
4926
|
break;
|
|
4919
4927
|
}
|
|
4920
4928
|
case 'thisMonth': {
|
|
4921
4929
|
const firstDay = new Date();
|
|
4922
4930
|
firstDay.setDate(1);
|
|
4923
4931
|
start = firstDay;
|
|
4932
|
+
start.setHours(0, 0, 0, 0);
|
|
4924
4933
|
end = new Date();
|
|
4934
|
+
end.setHours(23, 59, 59, 999);
|
|
4925
4935
|
break;
|
|
4926
4936
|
}
|
|
4927
4937
|
case 'lastMonth': {
|
|
@@ -4931,7 +4941,9 @@ class SearchUtils {
|
|
|
4931
4941
|
const lastDay = new Date();
|
|
4932
4942
|
lastDay.setDate(0);
|
|
4933
4943
|
start = firstDay;
|
|
4944
|
+
start.setHours(0, 0, 0, 0);
|
|
4934
4945
|
end = lastDay;
|
|
4946
|
+
end.setHours(23, 59, 59, 999);
|
|
4935
4947
|
break;
|
|
4936
4948
|
}
|
|
4937
4949
|
case 'thisYear': {
|
|
@@ -4939,7 +4951,9 @@ class SearchUtils {
|
|
|
4939
4951
|
firstDay.setMonth(0);
|
|
4940
4952
|
firstDay.setDate(1);
|
|
4941
4953
|
start = firstDay;
|
|
4954
|
+
start.setHours(0, 0, 0, 0);
|
|
4942
4955
|
end = new Date();
|
|
4956
|
+
end.setHours(23, 59, 59, 999);
|
|
4943
4957
|
break;
|
|
4944
4958
|
}
|
|
4945
4959
|
case 'lastYear': {
|
|
@@ -4952,7 +4966,9 @@ class SearchUtils {
|
|
|
4952
4966
|
lastDay.setMonth(11);
|
|
4953
4967
|
lastDay.setDate(31);
|
|
4954
4968
|
start = firstDay;
|
|
4969
|
+
start.setHours(0, 0, 0, 0);
|
|
4955
4970
|
end = lastDay;
|
|
4971
|
+
end.setHours(23, 59, 59, 999);
|
|
4956
4972
|
break;
|
|
4957
4973
|
}
|
|
4958
4974
|
}
|