fix KBB picking the wrong last transaction date

This commit is contained in:
Robert Dyer
2024-09-17 14:24:47 -05:00
parent 0fd83a7cf4
commit c81550190b
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ async function getKBB(URL) {
if (diff != 0) {
const daily = parseInt(getTagValue(note, 'kbbDailyMileage'));
if (mileage && daily) {
let lastDate = await getLastTransactionDate(account);
let lastDate = await getLastTransactionDate(account, undefined, true);
const parts = lastDate.split('-');
lastDate = new Date(parts[0], parts[1] - 1, parts[2]);
if (lastDate < new Date()) {