From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 14:48:10 2013 Received: (at submit) by debbugs.gnu.org; 15 Apr 2013 18:48:10 +0000 Received: from localhost ([127.0.0.1]:52808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URoRi-0005rK-HP for submit@debbugs.gnu.org; Mon, 15 Apr 2013 14:48:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36549) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URlbF-0007Gv-WA for submit@debbugs.gnu.org; Mon, 15 Apr 2013 11:45:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URlX7-0008EK-Ju for submit@debbugs.gnu.org; Mon, 15 Apr 2013 11:41:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:39435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlX7-0008EG-H3 for submit@debbugs.gnu.org; Mon, 15 Apr 2013 11:41:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlX3-0004R4-3L for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 11:41:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URlWv-00087K-0l for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 11:41:25 -0400 Received: from smtp2.viared.cl ([200.27.90.66]:50446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlWu-00080t-Dy for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2013 11:41:16 -0400 Received: from ns.viared.cl (viared.cl [200.27.90.2]) by smtp2.viared.cl (8.13.8/8.13.3) with ESMTP id r3FFfBr6012121 for ; Mon, 15 Apr 2013 12:41:12 -0300 Received: from [192.168.1.204] ([200.111.147.154]) by ns.viared.cl (8.14.1/8.11.0) with ESMTP id r3FFfA3Q005745 for ; Mon, 15 Apr 2013 12:41:11 -0300 Message-ID: <516C1F66.4080300@provectis.cl> Date: Mon, 15 Apr 2013 12:40:22 -0300 From: "Julio Pacheco T." MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 23.4; Timezone handling? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 15 Apr 2013 14:48:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': ---- Apparently, Emacs is ignoring the system timezone settings and using its own definitions. 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? If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/23.4/etc/DEBUG. In GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12) of 2012-09-22 on allspice, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11300000 configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -DDEBIAN -O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Calendar Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: r e p o r t - Recent messages: Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done Loading /etc/emacs/site-start.d/50flim.el (source)...done Loading /etc/emacs/site-start.d/50org-mode.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Computing phases of the moon...done Load-path shadows: /usr/share/emacs/23.4/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs23/site-lisp/flim/sha1 hides /usr/share/emacs/23.4/lisp/sha1 /usr/share/emacs23/site-lisp/flim/md4 hides /usr/share/emacs/23.4/lisp/md4 /usr/share/emacs23/site-lisp/flim/hex-util hides /usr/share/emacs/23.4/lisp/hex-util /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.4/lisp/textmodes/ispell /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.4/lisp/textmodes/flyspell /usr/share/emacs23/site-lisp/org-mode/org-freemind hides /usr/share/emacs/23.4/lisp/org/org-freemind /usr/share/emacs23/site-lisp/org-mode/org-archive hides /usr/share/emacs/23.4/lisp/org/org-archive /usr/share/emacs23/site-lisp/org-mode/org-compat hides /usr/share/emacs/23.4/lisp/org/org-compat /usr/share/emacs23/site-lisp/org-mode/org-xoxo hides /usr/share/emacs/23.4/lisp/org/org-xoxo /usr/share/emacs23/site-lisp/org-mode/org-plot hides /usr/share/emacs/23.4/lisp/org/org-plot /usr/share/emacs23/site-lisp/org-mode/org-src hides /usr/share/emacs/23.4/lisp/org/org-src /usr/share/emacs23/site-lisp/org-mode/org-habit hides /usr/share/emacs/23.4/lisp/org/org-habit /usr/share/emacs23/site-lisp/org-mode/org-mew hides /usr/share/emacs/23.4/lisp/org/org-mew /usr/share/emacs23/site-lisp/org-mode/org-mobile hides /usr/share/emacs/23.4/lisp/org/org-mobile /usr/share/emacs23/site-lisp/org-mode/org-w3m hides /usr/share/emacs/23.4/lisp/org/org-w3m /usr/share/emacs23/site-lisp/org-mode/org-datetree hides /usr/share/emacs/23.4/lisp/org/org-datetree /usr/share/emacs23/site-lisp/org-mode/org-indent hides /usr/share/emacs/23.4/lisp/org/org-indent /usr/share/emacs23/site-lisp/org-mode/org-wl hides /usr/share/emacs/23.4/lisp/org/org-wl /usr/share/emacs23/site-lisp/org-mode/org-remember hides /usr/share/emacs/23.4/lisp/org/org-remember /usr/share/emacs23/site-lisp/org-mode/org-crypt hides /usr/share/emacs/23.4/lisp/org/org-crypt /usr/share/emacs23/site-lisp/org-mode/org-docbook hides /usr/share/emacs/23.4/lisp/org/org-docbook /usr/share/emacs23/site-lisp/org-mode/org-mhe hides /usr/share/emacs/23.4/lisp/org/org-mhe /usr/share/emacs23/site-lisp/org-mode/org-protocol hides /usr/share/emacs/23.4/lisp/org/org-protocol /usr/share/emacs23/site-lisp/org-mode/org-list hides /usr/share/emacs/23.4/lisp/org/org-list /usr/share/emacs23/site-lisp/org-mode/org-irc hides /usr/share/emacs/23.4/lisp/org/org-irc /usr/share/emacs23/site-lisp/org-mode/org-inlinetask hides /usr/share/emacs/23.4/lisp/org/org-inlinetask /usr/share/emacs23/site-lisp/org-mode/org-timer hides /usr/share/emacs/23.4/lisp/org/org-timer /usr/share/emacs23/site-lisp/org-mode/org-jsinfo hides /usr/share/emacs/23.4/lisp/org/org-jsinfo /usr/share/emacs23/site-lisp/org-mode/org-install hides /usr/share/emacs/23.4/lisp/org/org-install /usr/share/emacs23/site-lisp/org-mode/org-attach hides /usr/share/emacs/23.4/lisp/org/org-attach /usr/share/emacs23/site-lisp/org-mode/org-macs hides /usr/share/emacs/23.4/lisp/org/org-macs /usr/share/emacs23/site-lisp/org-mode/org-faces hides /usr/share/emacs/23.4/lisp/org/org-faces /usr/share/emacs23/site-lisp/org-mode/org-exp hides /usr/share/emacs/23.4/lisp/org/org-exp /usr/share/emacs23/site-lisp/org-mode/org-info hides /usr/share/emacs/23.4/lisp/org/org-info /usr/share/emacs23/site-lisp/org-mode/org-clock hides /usr/share/emacs/23.4/lisp/org/org-clock /usr/share/emacs23/site-lisp/org-mode/org-colview hides /usr/share/emacs/23.4/lisp/org/org-colview /usr/share/emacs23/site-lisp/org-mode/org hides /usr/share/emacs/23.4/lisp/org/org /usr/share/emacs23/site-lisp/org-mode/org-ascii hides /usr/share/emacs/23.4/lisp/org/org-ascii /usr/share/emacs23/site-lisp/org-mode/org-mac-message hides /usr/share/emacs/23.4/lisp/org/org-mac-message /usr/share/emacs23/site-lisp/org-mode/org-html hides /usr/share/emacs/23.4/lisp/org/org-html /usr/share/emacs23/site-lisp/org-mode/org-exp-blocks hides /usr/share/emacs/23.4/lisp/org/org-exp-blocks /usr/share/emacs23/site-lisp/org-mode/org-vm hides /usr/share/emacs/23.4/lisp/org/org-vm /usr/share/emacs23/site-lisp/org-mode/org-bibtex hides /usr/share/emacs/23.4/lisp/org/org-bibtex /usr/share/emacs23/site-lisp/org-mode/org-rmail hides /usr/share/emacs/23.4/lisp/org/org-rmail /usr/share/emacs23/site-lisp/org-mode/org-gnus hides /usr/share/emacs/23.4/lisp/org/org-gnus /usr/share/emacs23/site-lisp/org-mode/org-publish hides /usr/share/emacs/23.4/lisp/org/org-publish /usr/share/emacs23/site-lisp/org-mode/org-table hides /usr/share/emacs/23.4/lisp/org/org-table /usr/share/emacs23/site-lisp/org-mode/org-agenda hides /usr/share/emacs/23.4/lisp/org/org-agenda /usr/share/emacs23/site-lisp/org-mode/org-mouse hides /usr/share/emacs/23.4/lisp/org/org-mouse /usr/share/emacs23/site-lisp/org-mode/org-bbdb hides /usr/share/emacs/23.4/lisp/org/org-bbdb /usr/share/emacs23/site-lisp/org-mode/org-feed hides /usr/share/emacs/23.4/lisp/org/org-feed /usr/share/emacs23/site-lisp/org-mode/org-footnote hides /usr/share/emacs/23.4/lisp/org/org-footnote /usr/share/emacs23/site-lisp/org-mode/org-icalendar hides /usr/share/emacs/23.4/lisp/org/org-icalendar /usr/share/emacs23/site-lisp/org-mode/org-id hides /usr/share/emacs/23.4/lisp/org/org-id /usr/share/emacs23/site-lisp/org-mode/org-latex hides /usr/share/emacs/23.4/lisp/org/org-latex /usr/share/emacs23/site-lisp/flim/sasl-cram hides /usr/share/emacs/23.4/lisp/net/sasl-cram /usr/share/emacs23/site-lisp/flim/sasl hides /usr/share/emacs/23.4/lisp/net/sasl /usr/share/emacs23/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/23.4/lisp/net/sasl-ntlm /usr/share/emacs23/site-lisp/flim/hmac-def hides /usr/share/emacs/23.4/lisp/net/hmac-def /usr/share/emacs23/site-lisp/flim/ntlm hides /usr/share/emacs/23.4/lisp/net/ntlm /usr/share/emacs23/site-lisp/flim/sasl-digest hides /usr/share/emacs/23.4/lisp/net/sasl-digest /usr/share/emacs23/site-lisp/flim/hmac-md5 hides /usr/share/emacs/23.4/lisp/net/hmac-md5 Features: (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 sha1-el hex-util hashcash mail-utils emacsbug lunar solar cal-dst mule-util cal-move regexp-opt cal-menu calendar cal-loaddefs folding-isearch folding advice help-fns advice-preload easymenu w3m-load org-install emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 02:06:25 2013 Received: (at 14210) by debbugs.gnu.org; 16 Apr 2013 06:06:25 +0000 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 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 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) 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) Date: Tue, 16 Apr 2013 09:01:44 +0300 From: Eli Zaretskii Subject: Re: bug#14210: 23.4; Timezone handling? In-reply-to: <516C1F66.4080300@provectis.cl> X-012-Sender: halo1@inter.net.il To: "Julio Pacheco T." Message-id: <83eheb57zr.fsf@gnu.org> References: <516C1F66.4080300@provectis.cl> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 14210 Cc: 14210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 09:45:26 2013 Received: (at 14210) by debbugs.gnu.org; 16 Apr 2013 13:45:26 +0000 Received: from localhost ([127.0.0.1]:54383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1US6CL-0002UV-3h for submit@debbugs.gnu.org; Tue, 16 Apr 2013 09:45:25 -0400 Received: from smtp2.viared.cl ([200.27.90.66]:42734) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1US6CG-0002U4-Is for 14210@debbugs.gnu.org; Tue, 16 Apr 2013 09:45:23 -0400 Received: from ns.viared.cl (ns.viared.cl [200.27.90.2]) by smtp2.viared.cl (8.13.8/8.13.3) with ESMTP id r3GDewBs002824; Tue, 16 Apr 2013 10:40:58 -0300 Received: from [192.168.1.204] ([200.111.147.154]) by ns.viared.cl (8.14.1/8.11.0) with ESMTP id r3GDevub009155; Tue, 16 Apr 2013 10:40:58 -0300 Message-ID: <516D54B8.70202@provectis.cl> Date: Tue, 16 Apr 2013 10:40:08 -0300 From: "Julio Pacheco T." MIME-Version: 1.0 To: Eli Zaretskii , 14210@debbugs.gnu.org Subject: Re: bug#14210: 23.4; Timezone handling? References: <516C1F66.4080300@provectis.cl> <83eheb57zr.fsf@gnu.org> In-Reply-To: <83eheb57zr.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtp2.viared.cl id r3GDewBs002824 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 14210 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Solved. Just for completeness, the answer to your questions: > Let's start with the basics: What does this print: > > M-: (format-time-string "%H:%M %Z %z") "09:01 CLT -0400" > > and how does the time it shows compare with your system clock? On the console: $ date +"%H:%M %Z %z" 09:02 CLT -0400 On the clock applet in the desktop: 10:02 America/Santiago > Next, do you have a TZ variable in your environment, and if you do, > what is its value? There is no TZ variable defined in the environment. > > Thanks to your hint, I've traced the actual problem to a stray=20 /etc/localtime that somehow didn't get updated with the rest of the=20 zonedata package. Apparently, the desktop clock applet gets the timezone info directly from= =20 /usr/share/zoneinfo/*, while the command line utilities and Emacs use=20 /etc/localtime first (checked with strace). Regards, Julio Pacheco El 16/04/2013 3:01, Eli Zaretskii escribi=F3: >> Date: Mon, 15 Apr 2013 12:40:22 -0300 >> From: "Julio Pacheco T." >> >> Apparently, Emacs is ignoring the system timezone settings and using i= ts >> 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 =3D Sat Apr 27 23:59:5= 9 2013 >> CLST isdst=3D1 gmtoff=3D-10800 >> Chile/Continental Sun Apr 28 03:00:00 2013 UTC =3D Sat Apr 27 23:00:0= 0 2013 >> CLT isdst=3D0 gmtoff=3D-14400 >> Chile/Continental Sun Sep 8 03:59:59 2013 UTC =3D Sat Sep 7 23:59:5= 9 2013 >> CLT isdst=3D0 gmtoff=3D-14400 >> Chile/Continental Sun Sep 8 04:00:00 2013 UTC =3D Sun Sep 8 01:00:0= 0 2013 >> CLST isdst=3D1 gmtoff=3D-10800 >> >> Output of emacs Calendar/Lunar phases (note the switch CLST-> CLT in t= he >> 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? > > From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 10:35:29 2013 Received: (at 14210-done) by debbugs.gnu.org; 16 Apr 2013 14:35:29 +0000 Received: from localhost ([127.0.0.1]:54726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1US6ym-0005IQ-2y for submit@debbugs.gnu.org; Tue, 16 Apr 2013 10:35:28 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:48811) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1US6yh-0005Hv-QX for 14210-done@debbugs.gnu.org; Tue, 16 Apr 2013 10:35:26 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MLC00L00QX33P00@a-mtaout21.012.net.il> for 14210-done@debbugs.gnu.org; Tue, 16 Apr 2013 17:31:04 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLC00KL7QZRVJ60@a-mtaout21.012.net.il>; Tue, 16 Apr 2013 17:31:04 +0300 (IDT) Date: Tue, 16 Apr 2013 17:31:16 +0300 From: Eli Zaretskii Subject: Re: bug#14210: 23.4; Timezone handling? In-reply-to: <516D54B8.70202@provectis.cl> X-012-Sender: halo1@inter.net.il To: "Julio Pacheco T." Message-id: <83mwsy4kej.fsf@gnu.org> References: <516C1F66.4080300@provectis.cl> <83eheb57zr.fsf@gnu.org> <516D54B8.70202@provectis.cl> X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 14210-done Cc: 14210-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Tue, 16 Apr 2013 10:40:08 -0300 > From: "Julio Pacheco T." > > Solved. Great, closing. From unknown Mon Aug 18 15:41:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 May 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator