diff options
author | Michael Budde <mbudde@gmail.com> | 2019-03-31 13:18:09 +0200 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2019-04-02 11:56:27 +0700 |
commit | c4eab0007a788703bc63db82fd995ef646820529 (patch) | |
tree | 5e1c69743d65eeb949a60279efca64cece486b05 /test/regress | |
parent | 928fe50958f980d3ff92f54abe07dd97d53e2279 (diff) | |
download | fork-ledger-c4eab0007a788703bc63db82fd995ef646820529.tar.gz fork-ledger-c4eab0007a788703bc63db82fd995ef646820529.tar.bz2 fork-ledger-c4eab0007a788703bc63db82fd995ef646820529.zip |
Add support for '%F' date format specifier
'%F' is equivalent to '%Y-%m-%d'. Using the '%F' format without this
change this would not give any hard errors but instead give dates with
wrong years because the 'has_year' trait would not be correctly
detected and thus parsed dates would get set to the current year.
Fixes #1775
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/1775.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/regress/1775.test b/test/regress/1775.test new file mode 100644 index 00000000..10ae3639 --- /dev/null +++ b/test/regress/1775.test @@ -0,0 +1,20 @@ +2017-02-28 * Test + Assets:A 10.00 EUR + Assets:B -10.00 EUR + +2017-03-30 * Test + Assets:A 10.00 EUR + Assets:B -10.00 EUR + +2018-03-30 * Test + Assets:A 10.00 EUR + Assets:B -10.00 EUR + +test reg --input-date-format %F +17-Feb-28 Test Assets:A 10.00 EUR 10.00 EUR + Assets:B -10.00 EUR 0 +17-Mar-30 Test Assets:A 10.00 EUR 10.00 EUR + Assets:B -10.00 EUR 0 +18-Mar-30 Test Assets:A 10.00 EUR 10.00 EUR + Assets:B -10.00 EUR 0 +end test |