summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-sh.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-10-02 16:49:20 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-10-02 16:49:58 -0700
commit395119998574051e53d466d55136d3e6498e90ef (patch)
tree4e3839b3576b6a26a7fc0a93c9b1536b4fe84203 /lisp/net/tramp-sh.el
parent0d0d59b32c66f6b0604cb7c89b875d0407fba41c (diff)
downloademacs-395119998574051e53d466d55136d3e6498e90ef.tar.gz
Port TZ settings to POSIX
* lisp/Makefile.in (.el.elc): * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times): Use the POSIX standard TZ=UTC0 rather than the GNU extension TZ=UTC to set the time zone to UTC.
Diffstat (limited to 'lisp/net/tramp-sh.el')
-rw-r--r--lisp/net/tramp-sh.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 1d0d0f8b1ba..3240f5352a7 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1528,7 +1528,7 @@ of."
time)))
(tramp-send-command-and-check
v (format
- "env TZ=UTC %s %s %s %s"
+ "env TZ=UTC0 %s %s %s %s"
(tramp-get-remote-touch v)
(if (tramp-get-connection-property v "touch-t")
(format "-t %s" (format-time-string "%Y%m%d%H%M.%S" time t))