From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43759: Emacs Calc date conversion Date: Fri, 02 Oct 2020 16:22:24 +0200 Message-ID: <87o8lkwvvj.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5868"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 43759@debbugs.gnu.org To: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 16:23:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOLxp-0001QY-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 16:23:13 +0200 Original-Received: from localhost ([::1]:46030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOLxo-00012h-6w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 10:23:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOLxe-00012W-J9 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 10:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOLxd-00022U-Sv for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 10:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOLxd-0002pR-Q7 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 10:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 14:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43759 X-GNU-PR-Package: emacs Original-Received: via spool by 43759-submit@debbugs.gnu.org id=B43759.160164856010830 (code B ref 43759); Fri, 02 Oct 2020 14:23:01 +0000 Original-Received: (at 43759) by debbugs.gnu.org; 2 Oct 2020 14:22:40 +0000 Original-Received: from localhost ([127.0.0.1]:42221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLxH-0002oc-UD for submit@debbugs.gnu.org; Fri, 02 Oct 2020 10:22:40 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:44304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLxG-0002oP-Eo for 43759@debbugs.gnu.org; Fri, 02 Oct 2020 10:22:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=yIOII9IVHXrHuZVU2O1PHHrizoyxbRYLHzXPi6WEVpE=; b=RD41zvM4h5t0/LkyTnbLUn7QdH tvbqs5Nxbf7IA7sGMwydBVZS1nXxor5W78KcP9joolb7n6eWneNmAXJtrFpI9UdeQopo618+1GRnZ 6QyC1811KNPQiwWZ3HQLP651VSxCdRUCKMMgMwYCmOFqkWBv6ncppgn45l7cna9r6w74=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOLx4-0004Kt-3K; Fri, 02 Oct 2020 16:22:31 +0200 X-Now-Playing: Jane Siberry's _When I Was A Boy_: "Sail Across The Water" In-Reply-To: ("Vincent =?UTF-8?Q?Bela=C3=AFche?="'s message of "Fri, 2 Oct 2020 10:53:59 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189649 Archived-At: Vincent Bela=C3=AFche writes: > I do the following exp=C3=A9riment under Emacs CC > > ;; Set date format as Unix > dd U RET > ;; Enter 1991-01-09T06:00 in Unix format, cf. date -d '1991-01-09T06:00+0= 0' > '+%s' > ' <663400800> RET > ;; Set format as ISO > dd YYYY-MM-DD HH:mm:SS RET > > Then the display is <1991-01-10 06:00>, but I expected the 9th and not > the 10th of January. I wondered whether this somehow had also been fixed by Mattias' recent calc change to business days, but it hasn't -- I'm able to reproduce it with the current trunk. This is another off-by-one-day bug, though, so perhaps it's related to the same change from a few years ago that changed day zero? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no