branch: externals/marginalia commit 72dafdac39097d13babe44c81402cf4cd4a68ce7 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Bind system-time-locale=C (Fix #100) Marginalia is not localized. --- marginalia.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/marginalia.el b/marginalia.el index 1e8e87d..36267ca 100644 --- a/marginalia.el +++ b/marginalia.el @@ -875,12 +875,13 @@ These annotations are skipped for remote paths." (defun marginalia--time-absolute (time) "Format TIME as an absolute age." - (format-time-string - (if (> (decoded-time-year (decode-time (current-time))) - (decoded-time-year (decode-time time))) - " %Y %b %d" - "%b %d %H:%M") - time)) + (let ((system-time-locale "C")) + (format-time-string + (if (> (decoded-time-year (decode-time (current-time))) + (decoded-time-year (decode-time time))) + " %Y %b %d" + "%b %d %H:%M") + time))) (defun marginalia--time (time) "Format file age TIME, suitably for use in annotations."