diff options
author | Oleg Bulatov <oleg@bulatov.me> | 2019-11-25 16:43:51 +0100 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2019-11-27 13:35:08 +0200 |
commit | 95237941b66931978953fadb390e1b442ed63175 (patch) | |
tree | d02da137b02663e1b7aca367bfa3e49976478c89 /src/annotate.cc | |
parent | 96eb5fe19fcbe46ca5fb9cf06c9460e226b5dcd7 (diff) | |
download | fork-ledger-95237941b66931978953fadb390e1b442ed63175.tar.gz fork-ledger-95237941b66931978953fadb390e1b442ed63175.tar.bz2 fork-ledger-95237941b66931978953fadb390e1b442ed63175.zip |
Format annotations using format that can be parsed
I expect an output of `ledger print` to be consumable by ledger.
But on the next journal
```
2019/11/25 * test
Foo 1 AAPL {1.00 EUR} [2019/11/24]
Bar
```
it prints [19-Nov-24], which it does not understand with default
options.
With this patch it prints [2019/11/24].
Diffstat (limited to 'src/annotate.cc')
-rw-r--r-- | src/annotate.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/annotate.cc b/src/annotate.cc index c5ccdf07..27261f57 100644 --- a/src/annotate.cc +++ b/src/annotate.cc @@ -206,7 +206,7 @@ void annotation_t::print(std::ostream& out, bool keep_base, if (date && (! no_computed_annotations || ! has_flags(ANNOTATION_DATE_CALCULATED))) - out << " [" << format_date(*date, FMT_PRINTED) << ']'; + out << " [" << format_date(*date, FMT_WRITTEN) << ']'; if (tag && (! no_computed_annotations || ! has_flags(ANNOTATION_TAG_CALCULATED))) |