emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/marginalia 72dafda: Bind system-time-locale=C (Fix #100


From: ELPA Syncer
Subject: [elpa] externals/marginalia 72dafda: Bind system-time-locale=C (Fix #100)
Date: Wed, 18 Aug 2021 08:57:11 -0400 (EDT)

branch: externals/marginalia
commit 72dafdac39097d13babe44c81402cf4cd4a68ce7
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]