From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Time zone trouble without time zones being involved Date: Sat, 14 May 2016 20:53:03 +0200 Message-ID: <87a8js8oa8.fsf@web.de> References: <87shz3cjbo.fsf@web.de> <87a8kxtris.fsf@web.de> <87k2k1h1ka.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1463421517 12364 80.91.229.3 (16 May 2016 17:58:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 17:58:37 +0000 (UTC) Cc: Emacs mailing list To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 16 19:58:30 2016 Return-path: Envelope-to: geh-help-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 1b2Mmj-00027P-7c for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 19:58:29 +0200 Original-Received: from localhost ([::1]:45738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Mmi-0005Zu-M7 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 13:58:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Ml7-0002ec-6X for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:56:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2Ml3-0004Ka-AV for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:56:48 -0400 Original-Received: from mout.web.de ([212.227.15.14]:53796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Ml2-0004KD-W1 for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:56:45 -0400 Original-Received: from drachen.dragon ([94.217.122.112]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0Lsvn8-1blLf00xSs-012cC9; Sat, 14 May 2016 20:53:04 +0200 In-Reply-To: (Yuri Khan's message of "Wed, 13 Apr 2016 23:40:40 +0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) X-Provags-ID: V03:K0:G62LfH8mfdXPl4rYJqBhw3CyiMjggn1opiZMDy0fgnApP03lLtb dxYCfl1D5SeOKYMcxtyUdcx6gujxFJRxwlIYAHbJcX7/ehCmExX7VAziMwU0ufwa4JTDmtx 1UAhoWfXgqs+Jtc7Fkqopib9L6z89BhofWYubgQsEAgV1jgLk1t8Fvf+hLtDSDOSrF3P86Z OreYKIvBXWpouimPLHBZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:xu2Q02TRXLE=:wKQEXx1Urehuc5xQ4mHQnL uJGcu8M2pNT5IfbS6L4J7LLVu+CVUbUlac06+fG1Jpv1BoUMhErxX3MZsEqXAfO3RXPq0c/p3 BR/GErELZ0fG8QXLejBU/17sKVTS3hlKE0HKWF/arfXWbh6zde6x5+gLgJqDuaG60qd0ARJtP JY+ECNFWHSsIsGDwIgWm81FiEJwBxUMoYfjYf7rZq6q5iYwFJc+j1DgKsuRZiHHoM8zd3Nt9N G1rWkrnMTa0+QM+dfRqTyOloOe4G0SG4Y6oY9q5J0J5A26RSjREcjFivKdDUwEKWDlnIHpsHG dHPezTDLXNrpo44e4lrYF3U4H07DCkXQy68OAYBwf9H2OPW+p88jkFGss2CRt/JivT1LGAOFB Ewz1EB+wqZg5XfkM8spXK1qILQZX90QIz0UqjoYH2pq5Cm8Gm47/uqL7YxQZUMdYKfhCednQm xTqj7vbYLJJ1wFSkVt4VBPHj64qDQVfaIcsdev2dvt6otG2uLiBUnHMD2s4x25O7B0Ij3Hb8u HzYVkSpUixGO7M9JDg50Dx2jb6GbfiF4FltwNiAPHW01LplUEmJAAuyhOv+FtZqL6iJnGRBJX 5QY+iR6gDjP6HYhL+q/Wt4a8gf9ETqP970CJtE98Xive/Qo5XAV5E0sexSYeFpYbHSUYOaJ6z ik7B6WnOQgOn7MLkSlhyTgBOZ9wnFpAULglBlznq/cCRqY5vGKU8U1eqmCmv9hCdS5z6jNMu+ X0xgbVCum2BeK0JKKQ6mzoj8rTMpbQwCklanr5bjFw6/yjPUPq2+j7DKM+gsioEnxiQPkAuA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109993 Archived-At: Hi Yuri, > Tests, please :) Good news - I managed to bring me to do this now! Hope you are still reading this... Here are the results. It is 20:44 here now after I run the tests (Central European Daylight savings time, the time zone of Berlin). > 1. Mark the current UTC time, both as a human-readable string and as a > unixtime value (e.g. on GNU, =E2=80=9Cdate --utc --rfc-3339=3Dseconds=E2= =80=9D and =E2=80=9Cdate > +%s=E2=80=9D, respectively). date --utc --rfc-3339=3Dseconds =3D> 2016-05-14 18:38:17+00:00 date +%s =3D> 1463251129 > 2. Make a commit. 3. Execute the same command, =E2=80=9Cgit log > --pretty=3Dformat:%ad --date=3Dformat:%s -n1=E2=80=9D. 1463254759 > 4. Evaluate (current-time) and convert the first two elements of the > resulting 4-element list to unixtime. (let ((time (current-time))) (+ (* 65536 (car time)) (cadr time))) =3D=3D> 1463251305 Looks like git is 1 hour wrong...? TIA, Michael.