]> git.walde.dev - beanbeanbean/commitdiff
Fix posting time formating
authorDustin Walde <redacted>
Tue, 14 Nov 2023 23:04:27 +0000 (15:04 -0800)
committerDustin Walde <redacted>
Tue, 14 Nov 2023 23:05:04 +0000 (15:05 -0800)
src/beanbeanbean/recurring.py

index adca9e631abd85e7e265c4a1770b9d60ad1492ff..eac73da6592e8f5b464b066f10de208d44e023da 100644 (file)
@@ -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"]