aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-08-23 05:44:59 +0200
committerLars Ingebrigtsen2019-08-23 05:44:59 +0200
commitbaae65d918e7f4c1f47057bc4b5f0302c3e47f38 (patch)
treee34bf6be3fb4faff845e0d6374cf86b013441779
parent6aab45bffc616efc938d7bcdb3a18c206f389a2c (diff)
downloademacs-baae65d918e7f4c1f47057bc4b5f0302c3e47f38.tar.gz
emacs-baae65d918e7f4c1f47057bc4b5f0302c3e47f38.zip
Use ISO8601 time formats in tar-mode
* lisp/tar-mode.el (tar-clip-time-string): Make obsolete (bug#37130). (tar-header-block-summarize): Use ISO8601 time instead of home-brew format.
-rw-r--r--lisp/tar-mode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 713f3d944bc..95862dec82b 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -450,6 +450,7 @@ checksum before doing the check."
450 (progn (beep) (message "Invalid checksum for file %s!" file-name)))) 450 (progn (beep) (message "Invalid checksum for file %s!" file-name))))
451 451
452(defun tar-clip-time-string (time) 452(defun tar-clip-time-string (time)
453 (declare (obsolete format-time-string "27.1"))
453 (let ((str (current-time-string time))) 454 (let ((str (current-time-string time)))
454 (concat " " (substring str 4 16) (format-time-string " %Y" time)))) 455 (concat " " (substring str 4 16) (format-time-string " %Y" time))))
455 456
@@ -508,7 +509,9 @@ MODE should be an integer which is a file mode value."
508 (if (= 0 (length uname)) uid uname) 509 (if (= 0 (length uname)) uid uname)
509 (if (= 0 (length gname)) gid gname) 510 (if (= 0 (length gname)) gid gname)
510 size 511 size
511 (if tar-mode-show-date (tar-clip-time-string time) "") 512 (if tar-mode-show-date
513 (format-time-string " %FT%T" time)
514 "")
512 (propertize name 515 (propertize name
513 'mouse-face 'highlight 516 'mouse-face 'highlight
514 'help-echo "mouse-2: extract this file into a buffer") 517 'help-echo "mouse-2: extract this file into a buffer")