From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#72570: 31.0.50; Regression in date-to-time Date: Tue, 13 Aug 2024 23:11:44 +0200 Message-ID: References: <86zfpige7k.fsf@gnu.org> <892ebc72-1020-471a-bdcd-8e8da10d61dd@cs.ucla.edu> <55718663-6c04-4f97-b3cb-122c924895c2@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31196"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 72570@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 13 23:12:57 2024 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 1sdyp6-0007yx-3O for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Aug 2024 23:12:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdyog-00037H-5D; Tue, 13 Aug 2024 17:12:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdyoe-00036n-HC for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2024 17:12:28 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdyoe-000563-88 for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2024 17:12:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=tWFRYdT4k+nxOLkeiNx+1USugb+oDIf+lZmjVZ6OjKA=; b=FUiiIczeDTIcLi1+XNfHSPMxjyj60Aul/EN/bUh9Rl32FN0lmmPvcg+x4j6G8RWqkw8TnmTQrMz/rJIK5ys45oRx2Pmg7Wk1m+619QjMiRyXcvn79F84IZ8uK7NvVTT0OvpwF8e9asOTHGsH4hPtsFbPK1reXx94lsr0Gxjl34ot6O6k3thbQkgvLyXJDYQYp6/iXhNdPVC9YUDkyhwfr7XqunvExvQxDfL5NCYSG4LCTmI7uG2ID8GARTAiW0wd0qMPBDxU4q6lO79+PDukJpzvSAem/bLCebaiUDwmsaduGWPFMbksN3EEbd3ja9WVhaSY3bBu2bZe421Hhd5s4Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sdypB-0000eP-QU for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2024 17:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Aug 2024 21:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72570 X-GNU-PR-Package: emacs Original-Received: via spool by 72570-submit@debbugs.gnu.org id=B72570.17235835522444 (code B ref 72570); Tue, 13 Aug 2024 21:13:01 +0000 Original-Received: (at 72570) by debbugs.gnu.org; 13 Aug 2024 21:12:32 +0000 Original-Received: from localhost ([127.0.0.1]:45578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdyoi-0000dK-4k for submit@debbugs.gnu.org; Tue, 13 Aug 2024 17:12:32 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183]:44364 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdyof-0000d0-Vs for 72570@debbugs.gnu.org; Tue, 13 Aug 2024 17:12:30 -0400 In-Reply-To: <55718663-6c04-4f97-b3cb-122c924895c2@cs.ucla.edu> (Paul Eggert's message of "Tue, 13 Aug 2024 12:39:48 -0700") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290090 Archived-At: >>>>> On Tue, 13 Aug 2024, Paul Eggert wrote: > You're quite right that we have a chicken and egg problem, and that no > solution will be perfect here. My point was that using a heuristic > would be better than nothing, if the goal is to infer timezone from > incomplete input. That's why timezone-fix-time uses this heuristic. > I continue to think that your idea of changing date-to-time to default > to the local time zone is the best way to move forward. How about this > idea for doing it? > * Change the doc to say this. This is a simple change, and it reflects > existing behavior better. > * Change date-to-time so that if it falls back on > timezone-make-date-arpa standard, it insists that the string denotes > a time zone; if the string lacks a time zone it errors out with > "Invalid date", which it already does with invalid dates. Sounds good. (Assuming that the fallback code is still needed today. >From commit history in the Gnus repository, it looks like the call to timezone-make-date-arpa-standard was first added on 2000-01-06 in https://github.com/dabrahams/gnus/commit/f1c5b21410f6e574913bbcf97ffd5e98d9ab89ac#diff-c8e4386c2f71d2573b4b5e6549e54c51cdf1fa649c6578ebd377f84e27576c93L32 . The rationale for the change was to make the function "... more robust, e.g. against the crop of year 100 dates in Jan 2000".)