mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
history: fix start/end of the day calculation, apply local timezone
This commit is contained in:
parent
55b4425c5d
commit
1ec22b3d0c
1 changed files with 3 additions and 2 deletions
|
@ -1361,8 +1361,9 @@ Rectangle {
|
||||||
// applying filters
|
// applying filters
|
||||||
root.txData = JSON.parse(JSON.stringify(root.txModelData)); // deepcopy
|
root.txData = JSON.parse(JSON.stringify(root.txModelData)); // deepcopy
|
||||||
|
|
||||||
var fromDate = fromDatePicker.currentDate.getTime() / 1000;
|
const timezoneOffset = new Date().getTimezoneOffset() * 60;
|
||||||
var toDate = toDatePicker.currentDate.getTime() / 1000;
|
var fromDate = Math.floor(fromDatePicker.currentDate.getTime() / 86400000) * 86400 + timezoneOffset;
|
||||||
|
var toDate = (Math.floor(toDatePicker.currentDate.getTime() / 86400000) + 1) * 86400 + timezoneOffset;
|
||||||
|
|
||||||
var txs = [];
|
var txs = [];
|
||||||
for (var i = 0; i < root.txData.length; i++){
|
for (var i = 0; i < root.txData.length; i++){
|
||||||
|
|
Loading…
Reference in a new issue