From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bostjan Vilfan Newsgroups: gmane.emacs.bugs Subject: bug#13982: 24.2; Bug in function format-time-string when used under Windows Date: Wed, 20 Mar 2013 08:56:18 +0100 Message-ID: References: <837gl53ltt.fsf@gnu.org> <83fvzr1fwr.fsf@gnu.org> <838v5j150j.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1363766248 18028 80.91.229.3 (20 Mar 2013 07:57:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Mar 2013 07:57:28 +0000 (UTC) Cc: 13982@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 20 08:57:54 2013 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 1UIDuC-0004Kz-AU for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 08:57:52 +0100 Original-Received: from localhost ([::1]:37880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIDtp-00039I-8z for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 03:57:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIDtj-00038q-Mr for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 03:57:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIDtg-0008Bt-Ab for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 03:57:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIDtg-0008Bh-5o for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 03:57:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UIDvK-0000T3-Ql for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 03:59:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bostjan Vilfan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Mar 2013 07:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13982-submit@debbugs.gnu.org id=B13982.13637662881722 (code B ref 13982); Wed, 20 Mar 2013 07:59:02 +0000 Original-Received: (at 13982) by debbugs.gnu.org; 20 Mar 2013 07:58:08 +0000 Original-Received: from localhost ([127.0.0.1]:36662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UIDuR-0000Rh-IV for submit@debbugs.gnu.org; Wed, 20 Mar 2013 03:58:08 -0400 Original-Received: from mail-la0-f43.google.com ([209.85.215.43]:47861) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UIDuO-0000RU-FP for 13982@debbugs.gnu.org; Wed, 20 Mar 2013 03:58:06 -0400 Original-Received: by mail-la0-f43.google.com with SMTP id ek20so2545566lab.2 for <13982@debbugs.gnu.org>; Wed, 20 Mar 2013 00:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=PGfriqtGtpUWAN6RV5ZIRM7eMGXyxJcyf4Do8lqbooU=; b=a20x5SgJdMed5coEoBbPfgoAIUh0XcQ9PYOUoE+ZdbrpzpUUOzHje+OJtdb1PfnPiY zQNHPuxST59o5C8EmQY9zaXYu7MzIx9r2rmC6FT1veTZhzOJNkRLi7LvukuUPO29QgOd ORwytvmljSzwxalAArk+hPRTgstqeGyM2T7gaYq7p+rKrEoX46Wr5azjEhrtLPUmKFpL ggntA6Jbu6C9nPqSPKbfneGjMJYVEh23OghQLhJ1xrpc7szma5WgEHs3Sk1aqDyXsW8X y6aMSCugok9VM0Coe9RhW1vohkFGhR7P4Yuy4HrkkDy9xQEcRRPoJ1YGSricTGHJsOQ7 /zxg== X-Received: by 10.112.79.34 with SMTP id g2mr4830286lbx.41.1363766179082; Wed, 20 Mar 2013 00:56:19 -0700 (PDT) Original-Received: by 10.112.83.105 with HTTP; Wed, 20 Mar 2013 00:56:18 -0700 (PDT) In-Reply-To: <838v5j150j.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:72738 Archived-At: On Tue, Mar 19, 2013 at 9:58 PM, Eli Zaretskii wrote: >> Date: Tue, 19 Mar 2013 22:08:25 +0200 >> From: Bostjan Vilfan >> Cc: 13982@debbugs.gnu.org >> >> On Tue, Mar 19, 2013 at 7:02 PM, Eli Zaretskii wrote: >> >> Date: Tue, 19 Mar 2013 12:56:30 +0200 >> >> From: Bostjan Vilfan >> >> Cc: 13982@debbugs.gnu.org >> >> >> >> Hello, and thanks for your message. I did as per your instructions, >> >> and the value of >> >> >> >> (format-time-string "%H:%M %z %Z") >> >> >> >> is "12:30 +0200 CDT" (actual local time was 11:30; so in other words >> >> emacs thinks local time is 1 hour ahead of actual local time) >> >> >> >> Your remark that all your Windows machines give the correct answer >> >> indicates that there must be some settings on my computer that is at >> >> fault; but I have no idea what that is. >> > >> > I don't think there's a Windows time zone whose name is "CDT". Can >> > you check if you happen to have a TZ variable in the environment, and >> > if so, what's its value? Please look both in the Computer's >> > Properties and in the command shell from which you invoke "emacs -Q". >> > >> TZ=CET-1CDT,3,-1,0,7200,10,-1,0,10800,3600 > > That's your problem, right there: unset that variable, and Emacs will > show the correct time. The Windows runtime library includes > semi-broken support for setting TZ, but it only supports the > "CET-1CDT" part of the value, and so switches to daylight savings not > on the date that the rest of your value provides, but uses some > internal default dates. See also this KB article: > > http://support.microsoft.com/kb/932590 > >> the reason I need TZ is that I still use the (quite old) RCS software. > > There's a newer one here: > > http://sourceforge.net/projects/ezwinports/files/rcs-5.7-1-bin.zip/download > > I use it all the time, and never needed any TZ setting. > >> > Also, I asked you to tell which time zone do you see in the Date/Time >> > dialog of your Windows system. Right-click on the time display in the >> > right corner of your task bar, and select "Adjust date/time". In the >> > dialog that pops, click "Change timezone", and tell the name of your >> > current Windows time zone that is shown in the middle of the dialog. >> > >> > If the Windows time zone and the time zone given to Emacs are >> > different, you can have all kinds of "1 hour off" problems, especially >> > around daylight savings change date. >> > >> there is no abbreviation, just the following: >> >> (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna > > This is what %Z should produce in Emacs. And it will, after you unset > TZ in the environment. > >> I hope I answered your specific questions above. There is one item >> that comes to mind, though, which I don't know whether it is evident >> in the data in my original error report, namely, that my system is >> 64-bit Windows 7. I also have a 32-bit Windows 7 installation, but >> currently I am unable to access it. As soon as I will be able to do >> so, I will check how emacs behaves there. > > 32-bit vs 64-bit is not a factor here. The problems you have happen > because you have TZ set in the environment. Hello, Let me just say one huge thanks. I've also downloaded the newer version of rcs, and hope it works. Regards, Bostjan