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: Tue, 19 Mar 2013 22:08:25 +0200 Message-ID: References: <837gl53ltt.fsf@gnu.org> <83fvzr1fwr.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 1363723777 13999 80.91.229.3 (19 Mar 2013 20:09:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2013 20:09:37 +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 Tue Mar 19 21:10:03 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 1UI2rA-0001UL-2O for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2013 21:10:00 +0100 Original-Received: from localhost ([::1]:52473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI2qm-0008W0-TU for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2013 16:09:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI2qg-0008Vn-N5 for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 16:09:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UI2qX-0007ZX-Cb for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 16:09:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI2qX-0007YD-9D for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 16:09:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UI2s9-0007OQ-JH for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 16:11:01 -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: Tue, 19 Mar 2013 20:11:01 +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.136372380928310 (code B ref 13982); Tue, 19 Mar 2013 20:11:01 +0000 Original-Received: (at 13982) by debbugs.gnu.org; 19 Mar 2013 20:10:09 +0000 Original-Received: from localhost ([127.0.0.1]:36141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UI2rJ-0007MZ-1L for submit@debbugs.gnu.org; Tue, 19 Mar 2013 16:10:09 -0400 Original-Received: from mail-vc0-f176.google.com ([209.85.220.176]:39458) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UI2rH-0007MP-BK for 13982@debbugs.gnu.org; Tue, 19 Mar 2013 16:10:08 -0400 Original-Received: by mail-vc0-f176.google.com with SMTP id ib11so739965vcb.35 for <13982@debbugs.gnu.org>; Tue, 19 Mar 2013 13:08:25 -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=D7Vl93cozwvN/FsDsC/TqPknG2f7zKN93+yZWn4oOlA=; b=eqKrla+SZzfqhT/qX5jUkmF8xDnTipCQy3aYCyQ6wudjpgA24hUb6sAu6KZHnROE5w NiGCGeg0b74il4mAYhTgImz01Msa//ICx22A8hEj4RGEh3N31czdui4FVHC6uNN+r9Vc hbHHcqzmtmPdGJPq4yZZkJbr4WujshmZLpqll6hNgdH3onC40G9VyazRUx5Tv+RvAZvL pAbdNCSt7RP+s+V2yQ79rlOYmPZgfaIg3dn6Q9/Kf438IiS1HUxS2Pgca4rEOHkD2iHf VyQT1AmADOPxvFhPvQThA+6yJJ96FznY1sKp5KLKYS18bw/YGdBoWH6Oz9qEpjC0T70a NbwA== X-Received: by 10.220.153.2 with SMTP id i2mr4334312vcw.53.1363723705538; Tue, 19 Mar 2013 13:08:25 -0700 (PDT) Original-Received: by 10.52.91.42 with HTTP; Tue, 19 Mar 2013 13:08:25 -0700 (PDT) In-Reply-To: <83fvzr1fwr.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:72720 Archived-At: 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 the reason I need TZ is that I still use the (quite old) RCS software. Up to now I did not encounter any problems with TZ. With regard to "CDT", I may have improvised a bit with the daylight savings name for my timezone. > 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 >> I made one additional experiment: the version of emacs I was using was >> a modification by Vincent Goulet >> (http://vgoulet.act.ulaval.ca/en/emacs/). I thought that in some way >> that version made some hidden changes, so I completely uninstalled it, >> and installed the version obtainable from the GNU site. The result of >> evaluating the above form was the same. > > Which leaves your system as the prime suspect. Hello, 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. Regards, Bostjan