From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.bugs Subject: bug#11281: DST has not effect on windows XP when system DST adjustment is disabled Date: Fri, 20 Apr 2012 00:35:40 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1334853996 32602 80.91.229.3 (19 Apr 2012 16:46:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 16:46:36 +0000 (UTC) To: 11281@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 18:46:33 2012 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 1SKuUv-0006y8-Ee for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 18:46:21 +0200 Original-Received: from localhost ([::1]:37390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuUu-0000lV-Oa for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 12:46:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuUO-0000jp-8H for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:45:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKuUI-000610-RZ for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:45:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuUI-00060s-Kw for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:45:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SKuUb-00043f-Sa for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Apr 2012 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133485393015558 (code B ref -1); Thu, 19 Apr 2012 16:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Apr 2012 16:45:30 +0000 Original-Received: from localhost ([127.0.0.1]:42066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKuU5-00042s-6C for submit@debbugs.gnu.org; Thu, 19 Apr 2012 12:45:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34405) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKuLL-0003mR-4e for submit@debbugs.gnu.org; Thu, 19 Apr 2012 12:36:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKuKq-00020s-9o for submit@debbugs.gnu.org; Thu, 19 Apr 2012 12:36:02 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:54808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuKq-00020o-4M for submit@debbugs.gnu.org; Thu, 19 Apr 2012 12:35:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuKk-0006ul-1t for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:35:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKuKd-0001yv-UL for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:35:49 -0400 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:42649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKuKd-0001yL-Lm for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 12:35:43 -0400 Original-Received: by bkwq16 with SMTP id q16so8208633bkw.0 for ; Thu, 19 Apr 2012 09:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=JOy0YSjiCpzZrsn0A1XCCBqhHVorTFwPrHfX3NhwQOQ=; b=z1G89/LTyqF8zH5I+mqHV7+1DnNA3iZYx9DR0i8/YULFtSZHfjnPfAuETqeq/340cK nHYa/8GtbWL9Ik2VSK1ll2KQoiNwBjJx68vLi0WWQBkXxkHSjHDWBJqAOU7jZ8J1uCUH WDGDCuxGlxSX6QNVK3ZoORs8psoIjM6/8zOk0K2VJDw17YupIfFQz1MEAziCQ7X1ZHF2 zedku9ROrdk8LfKHsq1UcgkVZzOJpzOB5FX2UwX5Dx72felJakw65hJ4TiA+P0/5P2O2 //YmU01bUoqM2CLpneDNiTjn+a9GnD/d4jSzFeI54LGBKNdlRzRQp+jFCY2i9y9LsfE8 +iBQ== Original-Received: by 10.204.10.79 with SMTP id o15mr871088bko.10.1334853340788; Thu, 19 Apr 2012 09:35:40 -0700 (PDT) Original-Received: by 10.205.34.8 with HTTP; Thu, 19 Apr 2012 09:35:40 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 19 Apr 2012 12:45:26 -0400 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 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Thu, 19 Apr 2012 12:46:19 -0400 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:59269 Archived-At: I'm using GNU Emacs 24.0.95.1 (i386-mingw-nt5.1.2600) of 2012-04-02 on MARVIN on WindowsXP SP3. I believe the issue exists in other version as well. In windows, 1. If I select the time zone GMP-5 EST (East Standard Time) and check the enable Daylight Saving Time checkbox, the command display-time-world in emacs can show the time of New York correctly with DST. 2. If I select the time zone GMP-5 EST (East Standard Time) and UNCHECK the enable Daylight Saving Time checkbox, or if I select a time zone without DST, the command display-time-world in emacs can not show the time of New York correctly with DST. But actually the display-time-world-list for New York is ("EST5EDT" "New York"), which (EST5EDT) supposes to enable the Daylight Saving Time to show the time. I try the following code to trace the issue: (setq old-tz (getenv "TZ")) (setenv "TZ" "EST+5EDT") (message (format "%s" (getenv "TZ"))) (message (format-time-string "%A %d %B %R %Z")) (decode-time) (setenv "TZ" "EST+5") (message (format "%s" (getenv "TZ"))) (message (format-time-string "%A %d %B %R %Z")) (decode-time) (setenv "TZ" old-tz) The output is (Because I select a timezone without DST in windows, the time in the outputs is no DST as I described above): "EST+5EDT" "Thursday 19 April 11:27 EDT" (26 27 11 19 4 2012 4 t -18000) "EST+5" "Thursday 19 April 11:27 EST" (34 27 11 19 4 2012 4 nil -18000) (DST is t if daylight saving time is in effect,otherwise nil.from the doc of decode-time) From the output of decode-time, it is clear that if the TZ is set to "EST+5EDT", the DST is effect. So it is most likely the function format-time-string can not catch this information. But it is still weird that it DOES has effect if I enable the DST in the Windows system.