From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#641: format-time-string %Z does not work, starting with Emacs 22.2 Date: Mon, 4 Aug 2008 15:07:28 -0700 Message-ID: <001501c8f67e$7c63b300$0200a8c0@us.oracle.com> References: <4897737C.90709@gmx.at> Reply-To: Drew Adams , 641@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217888874 653 80.91.229.12 (4 Aug 2008 22:27:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2008 22:27:54 +0000 (UTC) To: "'martin rudalics'" , <641@emacsbugs.donarmstrong.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 00:28:44 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KQ8Xi-0004wX-O3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2008 00:28:43 +0200 Original-Received: from localhost ([127.0.0.1]:59902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ8Wn-00028q-GN for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2008 18:27:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQ8Wd-00021u-00 for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 18:27:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQ8Wb-0001zW-3z for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 18:27:34 -0400 Original-Received: from [199.232.76.173] (port=53652 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ8Wa-0001zI-Ty for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 18:27:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52203) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQ8Wa-0007u9-F5 for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 18:27:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m74MRMHc000508; Mon, 4 Aug 2008 15:27:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m74MF3SN028833; Mon, 4 Aug 2008 15:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Mon, 04 Aug 2008 22:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 641 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 641-submit@emacsbugs.donarmstrong.com id=B641.121788765027222 (code B ref 641); Mon, 04 Aug 2008 22:15:03 +0000 Original-Received: (at 641) by emacsbugs.donarmstrong.com; 4 Aug 2008 22:07:30 +0000 Original-Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m74M7RSo027215 for <641@emacsbugs.donarmstrong.com>; Mon, 4 Aug 2008 15:07:28 -0700 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m74M7KIC012572; Mon, 4 Aug 2008 17:07:20 -0500 Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m74DbC1C008086; Mon, 4 Aug 2008 16:07:15 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt354.oracle.com with ESMTP id 11227429051217887617; Mon, 04 Aug 2008 15:06:57 -0700 Original-Received: from dradamslap1 (/69.181.100.12) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 04 Aug 2008 15:06:56 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4897737C.90709@gmx.at> Thread-Index: Acj2e/dFTxFQCOxATZOqEPZWxO2SXgAAQFdw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 04 Aug 2008 18:27:34 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19019 Archived-At: > From: martin rudalics Sent: Monday, August 04, 2008 2:24 PM > > emacs -Q > > M-: (format-time-string "%Z) ==> "" > > M-: (format-time-string "%z) ==> "-0700" > > > > The %Z string is incorrect. In my case, it should be (as it is in > > Emacs 20 and Emacs 22.1): "Pacific Daylight Time". > > > > This same bug appears in Emacs 23. This is a regression from Emacs > > 22.1. > > See > 2007-06-07 Jason Rumney > * s/ms-w32.h: Don't define HAVE_TZNAME. > * editfns.c (Fcurrent_time_zone): Remove hack for > Japanese Windows. > > and the preceding discussion starting with > http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg00334.html Sorry; I don't know what all of that means. It is obviously a bug, however, that %Z produces an empty time-zone string. I use it for a time stamp, for instance, with this form: (format-time-string "%a %b %e %T %Y (%Z)") After the change that introduced the bug, I get this: Mon Aug 4 15:01:16 2008 () instead of this: Mon Aug 4 15:01:16 2008 (Pacific Daylight Time) The doc string for `format-time-string' says that "%Z is the time zone name". My time zone name is "Pacific Daylight Time" (or something similar). It is certainly not "".