From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone Date: Wed, 13 Jan 2016 17:47:39 +0200 Message-ID: <83twmhiiqs.fsf@gnu.org> References: <3tziwb4dgz.fsf@fencepost.gnu.org> <56953489.20700@cs.ucla.edu> <2hd1t63d2d.fsf@fencepost.gnu.org> <56955FBE.70806@cs.ucla.edu> <83wpreiksc.fsf@gnu.org> <56957033.6090304@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452700998 24236 80.91.229.3 (13 Jan 2016 16:03:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2016 16:03:18 +0000 (UTC) Cc: 22302@debbugs.gnu.org, hanche@math.ntnu.no To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 13 17:03:07 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aJNt5-0003Rv-3o for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2016 17:03:07 +0100 Original-Received: from localhost ([::1]:37908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNt4-00017x-H1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2016 11:03:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNeY-00049G-Om for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 10:48:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJNeT-0002TY-Vw for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 10:48:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNeT-0002TA-T6 for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 10:48:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aJNeT-0000Dr-Mh for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2016 10:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2016 15:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22302 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22302-submit@debbugs.gnu.org id=B22302.1452700074841 (code B ref 22302); Wed, 13 Jan 2016 15:48:01 +0000 Original-Received: (at 22302) by debbugs.gnu.org; 13 Jan 2016 15:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:48398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJNeM-0000DV-Ch for submit@debbugs.gnu.org; Wed, 13 Jan 2016 10:47:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47429) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJNeL-0000DK-FP for 22302@debbugs.gnu.org; Wed, 13 Jan 2016 10:47:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJNeC-0002JB-GR for 22302@debbugs.gnu.org; Wed, 13 Jan 2016 10:47:48 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJNdy-00027k-Vm; Wed, 13 Jan 2016 10:47:30 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1580 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aJNdu-00008e-WB; Wed, 13 Jan 2016 10:47:27 -0500 In-reply-to: <56957033.6090304@cs.ucla.edu> (message from Paul Eggert on Tue, 12 Jan 2016 13:29:23 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111581 Archived-At: > Cc: rgm@gnu.org, 22302@debbugs.gnu.org, hanche@math.ntnu.no > From: Paul Eggert > Date: Tue, 12 Jan 2016 13:29:23 -0800 > > On 01/12/2016 12:51 PM, Eli Zaretskii wrote: > >> don't know what MS-Windows does with TZ="UTC" > > Nothing. It doesn't understand that. The MS-Windows time routines > > need an explicit offset from UTC to be able to account for the > > timezone. So unless you say UTC-0, nothing will happen. > > In that case I'm a bit puzzled. Before today, lines like this: > > # time-stamp-time-zone: "UTC" > > appeared in files like build-aux/gitlog-to-changelog. Emacs implements > these lines by temporarily setting the TZ environment variable to "UTC". > If that setting is ineffective on MS-Windows, presumably any relevant > time stamps were generated in local time instead, which is not wanted. > > Perhaps no MS-Windows users noticed, or none of them bothered to file a > bug report. > > Or perhaps "nothing will happen" means "no offset from UTC will be > applied", which means that unrecognized TZ settings act like UTC; this > is what tzcode does. I see that what I said was inaccurate: the MS-Windows runtime indeed doesn't interpret the 3-letter TZ name, but if the offset is missing, it is taken as zero. So "UTC" will indeed be interpreted as "UTC+0" (and so will "EDT" and any other "XXX" with no offset). Of course, currently this doesn't work in time-stamp, for the reasons described in the original bug report. But format-time-string does behave on Windows as described above. Sorry for any confusion I could cause.