diff --git a/cmd/coin2html/js/src/index.js b/cmd/coin2html/js/src/index.js index 87bab57..27a477a 100644 --- a/cmd/coin2html/js/src/index.js +++ b/cmd/coin2html/js/src/index.js @@ -291,6 +291,8 @@ function loadAccounts() { const posting = new Posting(transaction, account, quantity, balance, impPosting.balance_asserted, impPosting.notes, impPosting.tags); } } + MinDate = new Date(MinDate.getFullYear(), 0, 1); + MaxDate = new Date(MaxDate.getFullYear(), 11, 31); } function loadEverything() { loadCommodities(); diff --git a/cmd/coin2html/js/src/index.ts b/cmd/coin2html/js/src/index.ts index cb3a17c..9cabd93 100644 --- a/cmd/coin2html/js/src/index.ts +++ b/cmd/coin2html/js/src/index.ts @@ -397,6 +397,8 @@ function loadAccounts() { ); } } + MinDate = new Date(MinDate.getFullYear(), 0, 1); + MaxDate = new Date(MaxDate.getFullYear(), 11, 31); } function loadEverything() { diff --git a/examples/yearly/viewer/index.html b/examples/yearly/viewer/index.html index 8c66656..4662797 100644 --- a/examples/yearly/viewer/index.html +++ b/examples/yearly/viewer/index.html @@ -46584,6 +46584,8 @@