From 8a7269eb1bdbce425ea372573e81bf7affcaa8d9 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 15 Jun 2006 21:55:39 +0000 Subject: [PATCH] * net/tramp.el (tramp-touch): Use UTC to express time. --- lisp/ChangeLog | 4 ++++ lisp/net/tramp.el | 7 ++++--- 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 @@ +2006-06-15 Katsumi Yamaoka (tiny change) + + * net/tramp.el (tramp-touch): Use UTC to express time. + 2006-06-15 Chong Yidong * 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." (defun tramp-touch (file time) "Set the last-modified timestamp of the given file. TIME is an Emacs internal time value as returned by `current-time'." - (let ((touch-time (format-time-string "%Y%m%d%H%M.%S" time))) + (let ((touch-time (format-time-string "%Y%m%d%H%M.%S" time t))) (if (tramp-tramp-file-p file) (with-parsed-tramp-file-name file nil (let ((buf (tramp-get-buffer multi-method method user host))) (unless (zerop (tramp-send-command-and-check multi-method method user host - (format "touch -t %s %s" + (format "TZ=UTC; export TZ; touch -t %s %s" touch-time - localname))) + localname) + t)) (pop-to-buffer buf) (error "tramp-touch: touch failed, see buffer `%s' for details" buf)))) -- 2.39.5