summaryrefslogtreecommitdiff
path: root/lisp/ledger-mode.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2016-05-04 18:43:57 -0700
committerCraig Earls <enderw88@gmail.com>2016-05-04 18:43:57 -0700
commitfcf16d035e9d61ed903499d0e72985970aec9170 (patch)
tree439c984c0f667bbb5d73bf5df8a8541e41d3a968 /lisp/ledger-mode.el
parentb08c03f05e2cfe7c4071a51075e83221edb24c33 (diff)
parent4eda0d84191dc045cde8261616edad3d15b84a02 (diff)
downloadfork-ledger-fcf16d035e9d61ed903499d0e72985970aec9170.tar.gz
fork-ledger-fcf16d035e9d61ed903499d0e72985970aec9170.tar.bz2
fork-ledger-fcf16d035e9d61ed903499d0e72985970aec9170.zip
Merge pull request #454 from rudolfochrist/read-iso-date-fix
Consider ISO dates in `ledger-read-date'.
Diffstat (limited to 'lisp/ledger-mode.el')
-rw-r--r--lisp/ledger-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ledger-mode.el b/lisp/ledger-mode.el
index 7e30c350..e77a2b61 100644
--- a/lisp/ledger-mode.el
+++ b/lisp/ledger-mode.el
@@ -115,7 +115,9 @@
(string= "" date))
(format-time-string
(or (cdr (assoc "date-format" ledger-environment-alist))
- ledger-default-date-format))
+ (if ledger-use-iso-dates
+ ledger-iso-date-format
+ ledger-default-date-format)))
date)))
(defun ledger-read-string-with-default (prompt default)