From: Dustin Walde Date: Tue, 14 Nov 2023 23:04:27 +0000 (-0800) Subject: Fix posting time formating X-Git-Url: https://git.walde.dev/?a=commitdiff_plain;h=e59806bae23b7e724e8464e54adfcd9b1c46201a;p=beanbeanbean Fix posting time formating --- diff --git a/src/beanbeanbean/recurring.py b/src/beanbeanbean/recurring.py index adca9e6..eac73da 100644 --- a/src/beanbeanbean/recurring.py +++ b/src/beanbeanbean/recurring.py @@ -170,6 +170,9 @@ def handle_recurring_transaction(txn: Transaction, format_token: str) -> Union[L for posting in txn.postings: pd = posting._asdict() pd["meta"] = dict(posting.meta) + for k, v in pd["meta"].items(): + if type(v) is str: + pd["meta"][k] = new_txn_dict["date"].strftime(v) new_txn_dict["postings"].append(Posting(**pd)) new_date = new_txn_dict["date"]