diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-10-02 16:49:20 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-10-02 16:49:58 -0700 |
commit | 395119998574051e53d466d55136d3e6498e90ef (patch) | |
tree | 4e3839b3576b6a26a7fc0a93c9b1536b4fe84203 /lisp/net | |
parent | 0d0d59b32c66f6b0604cb7c89b875d0407fba41c (diff) | |
download | emacs-395119998574051e53d466d55136d3e6498e90ef.tar.gz emacs-395119998574051e53d466d55136d3e6498e90ef.tar.bz2 emacs-395119998574051e53d466d55136d3e6498e90ef.zip |
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')
-rw-r--r-- | lisp/net/tramp-sh.el | 2 | ||||
-rw-r--r-- | lisp/net/tramp-sudoedit.el | 2 |
2 files changed, 2 insertions, 2 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)) diff --git a/lisp/net/tramp-sudoedit.el b/lisp/net/tramp-sudoedit.el index f8b602e34ce..dc87c590b3b 100644 --- a/lisp/net/tramp-sudoedit.el +++ b/lisp/net/tramp-sudoedit.el @@ -568,7 +568,7 @@ the result will be a local, non-Tramp, file name." nil time))) (tramp-sudoedit-send-command - v "env" "TZ=UTC" "touch" "-t" + v "env" "TZ=UTC0" "touch" "-t" (format-time-string "%Y%m%d%H%M.%S" time t) (if (eq flag 'nofollow) "-h" "") (tramp-compat-file-name-unquote localname))))) |