From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: 22302@debbugs.gnu.org
Subject: bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone
Date: Mon, 4 Jan 2016 00:18:52 +0000 [thread overview]
Message-ID: <etPan.5689ba6b.4be28399.bc30@frigg> (raw)
Run emacs -Q and insert this text:
Time-stamp: <>
Then do:
M-: (require 'time-stamp) RET
M-x set-variable RET time-stamp-time-zone RET "UTC" RET
M-x time-stamp
Expected result: A UTC time stamp is inserted.
Actual result: A time stamp in the local time zone is inserted.
My analysis:
time-stamp uses time-stamp-string to compute the string to insert.
And that calls:
(format-time-string (time-stamp-string-preprocess ts-format)
nil time-stamp-time-zone)
However, time-stamp-string-preprocess does all the work,
leaving nothing for format-time-string to do.
And it does so without consulting time-stamp-time-zone.
Admittedly, the doc string for time-stamp (no longer?) mentions time-stamp-time-zone.
However, the variable does exist, and its doc string indicates that it will be used by time-stamp.
– Harald
In GNU Emacs 25.1.50.1 (x86_64-apple-darwin15.2.0, NS appkit-1404.34 Version 10.11.2 (Build 15C50))
of 2015-12-17
Repository revision: 23b5c22703eeee7b4fe6608ce12ffe3b87794933
Windowing system distributor 'Apple', version 10.3.1404
Configured using:
'configure --with-ns'
Configured features:
RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
Important settings:
value of $LC_CTYPE: en_US.UTF-8
locale-coding-system: utf-8-unix
next reply other threads:[~2016-01-04 0:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-04 0:18 Harald Hanche-Olsen [this message]
2016-01-12 4:40 ` bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone 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
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=etPan.5689ba6b.4be28399.bc30@frigg \
--to=hanche@math.ntnu.no \
--cc=22302@debbugs.gnu.org \
/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).