aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/tramp.el7
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0f297921fb7..b3ec21cba3f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12006-06-15 Katsumi Yamaoka <yamaoka@jpl.org> (tiny change)
2
3 * net/tramp.el (tramp-touch): Use UTC to express time.
4
12006-06-15 Chong Yidong <cyd@stupidchicken.com> 52006-06-15 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * mail/sendmail.el (mail-send): Search explicitly for 7 * mail/sendmail.el (mail-send): Search explicitly for
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 2ebc4d0b45e..c4166bb6d24 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -5017,15 +5017,16 @@ hosts, or files, disagree."
5017(defun tramp-touch (file time) 5017(defun tramp-touch (file time)
5018 "Set the last-modified timestamp of the given file. 5018 "Set the last-modified timestamp of the given file.
5019TIME is an Emacs internal time value as returned by `current-time'." 5019TIME is an Emacs internal time value as returned by `current-time'."
5020 (let ((touch-time (format-time-string "%Y%m%d%H%M.%S" time))) 5020 (let ((touch-time (format-time-string "%Y%m%d%H%M.%S" time t)))
5021 (if (tramp-tramp-file-p file) 5021 (if (tramp-tramp-file-p file)
5022 (with-parsed-tramp-file-name file nil 5022 (with-parsed-tramp-file-name file nil
5023 (let ((buf (tramp-get-buffer multi-method method user host))) 5023 (let ((buf (tramp-get-buffer multi-method method user host)))
5024 (unless (zerop (tramp-send-command-and-check 5024 (unless (zerop (tramp-send-command-and-check
5025 multi-method method user host 5025 multi-method method user host
5026 (format "touch -t %s %s" 5026 (format "TZ=UTC; export TZ; touch -t %s %s"
5027 touch-time 5027 touch-time
5028 localname))) 5028 localname)
5029 t))
5029 (pop-to-buffer buf) 5030 (pop-to-buffer buf)
5030 (error "tramp-touch: touch failed, see buffer `%s' for details" 5031 (error "tramp-touch: touch failed, see buffer `%s' for details"
5031 buf)))) 5032 buf))))