From ab1a951cb51f2a2f32594c255c7642d4b6e28db5 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Mon, 18 Mar 2024 16:37:07 -0400 Subject: [PATCH] ledger-report: Pass ledger-default-date-format to ledger command Fix #289 --- ledger-report.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ledger-report.el b/ledger-report.el index 6ede42bb..390b5f43 100644 --- a/ledger-report.el +++ b/ledger-report.el @@ -446,7 +446,8 @@ called in the ledger buffer for which the report is being run." (defun ledger-report--compute-extra-args (report-cmd) "Compute extra args to add to REPORT-CMD." - `(,@(when (ledger-report--cmd-needs-links-p report-cmd) + `("--date-format" ,ledger-default-date-format + ,@(when (ledger-report--cmd-needs-links-p report-cmd) '("--prepend-format=%(filename):%(beg_line):")) ,@(when ledger-report-auto-width `("--columns" ,(format "%d" (window-max-chars-per-line))))