unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 22302@debbugs.gnu.org, hanche@math.ntnu.no
Subject: bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone
Date: Wed, 13 Jan 2016 17:47:39 +0200	[thread overview]
Message-ID: <83twmhiiqs.fsf@gnu.org> (raw)
In-Reply-To: <56957033.6090304@cs.ucla.edu> (message from Paul Eggert on Tue,  12 Jan 2016 13:29:23 -0800)

> Cc: rgm@gnu.org, 22302@debbugs.gnu.org, hanche@math.ntnu.no
> From: Paul Eggert <eggert@cs.ucla.edu>
> 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.





      reply	other threads:[~2016-01-13 15:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04  0:18 bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone Harald Hanche-Olsen
2016-01-12  4:40 ` Glenn Morris
2016-01-12 17:14   ` Paul Eggert
2016-01-12 17:47     ` Glenn Morris
2016-01-12 20:19       ` Paul Eggert
2016-01-12 20:51         ` Eli Zaretskii
2016-01-12 21:29           ` Paul Eggert
2016-01-13 15:47             ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83twmhiiqs.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22302@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=hanche@math.ntnu.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).