bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone


From: Paul Eggert
Subject: bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone
Date: Tue, 12 Jan 2016 09:14:49 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 01/11/2016 08:40 PM, Glenn Morris wrote:
Harald Hanche-Olsen wrote:

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.
This is due to af32fa956. Paul, could you have a look please?

Thanks for reporting this. I fixed the bug by installing the attached patch to emacs-25.

By the way, the value "UTC" is not portable to non-GNU systems, and POSIX says that in theory it could cause Emacs to crash. The value should be "UTC0" or (in Emacs 25) t. I see that some of Emacs's own source files have this issue, and plan to look into that.

Attachment: 0001-Fix-time-stamp-time-zone-bugs-introduced-in-July.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]