$ cat a.j
2020-12-31
(a) 1
$ hledger-1.23 -f a.j bal date:2021 # date: correctly excludes the 2020 posting
--------------------
0
$ hledger-1.23 -f a.j bal date:2021 --date2 # but not with --date2
1 a
--------------------
1
$ hledger-1.19 -f a.j bal date:2021 --date2
1 a
--------------------
1
$ hledger-1.18 -f a.j bal date:2021 --date2 # it last worked in 1.18
--------------------
0
From a report by heyarne in chat: