This commit is contained in:
rating89us 2024-11-25 23:25:50 +00:00 committed by GitHub
commit a4cc68955b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1440,9 +1440,8 @@ Rectangle {
// applying filters
root.txData = JSON.parse(JSON.stringify(root.txModelData)); // deepcopy
const timezoneOffset = new Date().getTimezoneOffset() * 60;
var fromDate = Math.floor(fromDatePicker.currentDate.getTime() / 86400000) * 86400 + timezoneOffset;
var toDate = (Math.floor(toDatePicker.currentDate.getTime() / 86400000) + 1) * 86400 + timezoneOffset;
var fromDate = fromDatePicker.currentDate.setHours(0, 0, 0, 0);
var toDate = toDatePicker.currentDate.setHours(23, 59, 59, 999);
var txs = [];
for (var i = 0; i < root.txData.length; i++){
@ -1450,7 +1449,7 @@ Rectangle {
var matched = "";
// daterange filtering
if(item.timestamp < fromDate || item.timestamp > toDate){
if(item.timestamp * 1000 < fromDate || item.timestamp * 1000 > toDate){
continue;
}