From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14210: 23.4; Timezone handling? Date: Tue, 16 Apr 2013 09:01:44 +0300 Message-ID: <83eheb57zr.fsf@gnu.org> References: <516C1F66.4080300@provectis.cl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366092173 24111 80.91.229.3 (16 Apr 2013 06:02:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2013 06:02:53 +0000 (UTC) Cc: 14210@debbugs.gnu.org To: "Julio Pacheco T." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 16 08:02: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 1URyyk-0004nB-2n for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2013 08:02:54 +0200 Original-Received: from localhost ([::1]:33502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URyyj-0001T5-Lk for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2013 02:02:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URyye-0001Sj-LV for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2013 02:02:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URyyc-0007f4-Uk for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2013 02:02:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URyyc-0007es-RU for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2013 02:02:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1URz2j-0000ou-Lt for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2013 02:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Apr 2013 06:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14210 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14210-submit@debbugs.gnu.org id=B14210.13660923853000 (code B ref 14210); Tue, 16 Apr 2013 06:07:01 +0000 Original-Received: (at 14210) by debbugs.gnu.org; 16 Apr 2013 06:06:25 +0000 Original-Received: from localhost ([127.0.0.1]:53640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URz28-0000mK-LA for submit@debbugs.gnu.org; Tue, 16 Apr 2013 02:06:24 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:65087) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URz24-0000m4-S2 for 14210@debbugs.gnu.org; Tue, 16 Apr 2013 02:06:22 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MLC008003CAPF00@a-mtaout22.012.net.il> for 14210@debbugs.gnu.org; Tue, 16 Apr 2013 09:01:33 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLC008JG3EK8GB0@a-mtaout22.012.net.il>; Tue, 16 Apr 2013 09:01:33 +0300 (IDT) In-reply-to: <516C1F66.4080300@provectis.cl> X-012-Sender: halo1@inter.net.il 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:73444 Archived-At: > Date: Mon, 15 Apr 2013 12:40:22 -0300 > From: "Julio Pacheco T." > > Apparently, Emacs is ignoring the system timezone settings and using its > own definitions. Not really, no. > In Chile, the switch from daylight savings to standard time has been > postponed from March 10 00:00 to April 28 00:00, and the system tzdata > files have been properly updated; however, inside Emacs, the timezone is > reported as CLT instead of CLST: > > Output of zdump -v Chile/Continental | grep 2013 > ------------------------------------------------ > Chile/Continental Sun Apr 28 02:59:59 2013 UTC = Sat Apr 27 23:59:59 2013 > CLST isdst=1 gmtoff=-10800 > Chile/Continental Sun Apr 28 03:00:00 2013 UTC = Sat Apr 27 23:00:00 2013 > CLT isdst=0 gmtoff=-14400 > Chile/Continental Sun Sep 8 03:59:59 2013 UTC = Sat Sep 7 23:59:59 2013 > CLT isdst=0 gmtoff=-14400 > Chile/Continental Sun Sep 8 04:00:00 2013 UTC = Sun Sep 8 01:00:00 2013 > CLST isdst=1 gmtoff=-10800 > > Output of emacs Calendar/Lunar phases (note the switch CLST-> CLT in the > Mar 4 - Mar 11 interval, instead of Apr25 - May2): > --------------------------------------- > Monday, March 4, 2013: Last Quarter Moon 6:59pm (CLST) > Monday, March 11, 2013: New Moon 3:54pm (CLT) > Tuesday, March 19, 2013: First Quarter Moon 1:28pm (CLT) > Wednesday, March 27, 2013: Full Moon 5:26am (CLT) > Wednesday, April 3, 2013: Last Quarter Moon 12:43am (CLT) > Wednesday, April 10, 2013: New Moon 5:39am (CLT) > Thursday, April 18, 2013: First Quarter Moon 8:33am (CLT) > Thursday, April 25, 2013: Full Moon 3:55pm (CLT) > Thursday, May 2, 2013: Last Quarter Moon 7:21am (CLT) > Thursday, May 9, 2013: New Moon 8:32pm (CLT) > Saturday, May 18, 2013: First Quarter Moon 12:36am (CLT) > Saturday, May 25, 2013: Full Moon 12:22am (CLT) > Friday, May 31, 2013: Last Quarter Moon 3:05pm (CLT) > > Also, in org-mode the timestamps created by org-clock-in are off by -1 > hour, so the discrepancies in timezone are not mode-specific. > > So, where is emacs actually getting the timezone info from? >From your system, of course. Although packages like Calendar might sometimes offer features that use some internal data (but not in this case, I think). Let's start with the basics: What does this print: M-: (format-time-string "%H:%M %Z %z") and how does the time it shows compare with your system clock? Next, do you have a TZ variable in your environment, and if you do, what is its value?