Skip to content

Commit 8602bd8

Browse files
committed
Fix epg bug with (TICKS . HZ) timestamp
Problem reported by Joseph Mingrone in: https://lists.gnu.org/r/emacs-devel/2018-10/msg00380.html * lisp/epg.el (epg--time-from-seconds): Just use a seconds count; don’t generate an obsolete-format timestamp.
1 parent 7d5919e commit 8602bd8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lisp/epg.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,10 +946,7 @@ callback data (if any)."
946946
(cons (cons 'no-seckey string)
947947
(epg-context-result-for context 'error))))
948948

949-
(defun epg--time-from-seconds (seconds)
950-
(let ((number-seconds (string-to-number (concat seconds ".0"))))
951-
(cons (floor (/ number-seconds 65536))
952-
(floor (mod number-seconds 65536)))))
949+
(defalias 'epg--time-from-seconds #'string-to-number)
953950

954951
(defun epg--status-ERRSIG (context string)
955952
(if (string-match "\\`\\([^ ]+\\) \\([0-9]+\\) \\([0-9]+\\) \

0 commit comments

Comments
 (0)