]> git.eshelyaron.com Git - emacs.git/commitdiff
Port TZ settings to POSIX
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Oct 2022 23:49:20 +0000 (16:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Oct 2022 23:49:58 +0000 (16:49 -0700)
* 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.

lisp/Makefile.in
lisp/net/tramp-sh.el
lisp/net/tramp-sudoedit.el

index e66d80f81444b001eb61c6469534611c20eb748e..4c26e423701af49e234eb96dab983108f01e7370 100644 (file)
@@ -315,7 +315,7 @@ ifeq ($(ANCIENT),yes)
 .el.elc:
        $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
        -l comp -f batch-byte-compile $<
-       TZ=UTC touch -t 197001010000 $@
+       TZ=UTC0 touch -t 197001010000 $@
 else
 .el.elc:
        $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
index 1d0d0f8b1babb2d0e5fa4d1c223dd5ba34a695de..3240f5352a7b5f14bbcb3c07806bc8d9362c4bc0 100644 (file)
@@ -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))
index f8b602e34ce563cb874fd064e2725b76540a8d71..dc87c590b3b2e2c23642f7283bf0b1b144489f6e 100644 (file)
@@ -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)))))