From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#72570: 31.0.50; Regression in date-to-time Date: Tue, 13 Aug 2024 12:39:48 -0700 Organization: UCLA Computer Science Department Message-ID: <55718663-6c04-4f97-b3cb-122c924895c2@cs.ucla.edu> References: <86zfpige7k.fsf@gnu.org> <892ebc72-1020-471a-bdcd-8e8da10d61dd@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35463"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , 72570@debbugs.gnu.org To: Ulrich Mueller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 13 21:40:45 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 1sdxNt-00094B-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Aug 2024 21:40:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdxNf-0004vl-QU; Tue, 13 Aug 2024 15:40:31 -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 1sdxNd-0004vQ-LX for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2024 15:40:29 -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 1sdxNd-0000SO-C8 for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2024 15:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=gMnjqTl2v/OXnaCvLF/Hq343w+1Byyb4jE/jnCMmYqo=; b=XsiFnI1qkSI57S3Lm9DPAGYVavGImoykFPLvQdhMeZ/g/2lcecnMT1ervLepvoVh1n7VpGBJY7Qp/tAaRLhCQl1epXX8tvvFdL+Pd5uzAiAM/mCMC8WEGYD2XreU80w07tUbElkWEY8dcrZ3MWi6KCOkOC2roZuAbIySARYHAjUscwBH9ubL/BunZwUJ8cn35DrnoIhLVIM4/kwDvW/eujvg8I6rYeVYHVxU89oU+YaxkuDJNZ6mGeCnZOQ8lmq3dJ/vn4KF5m0Mpd4Gj1M6TKwY7axLPfTO8cS0ceJialdawsMqC516FlVTfLHGufhyxgUW7usaOJMfjZ7SxUtbvg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sdxOA-00042Q-OP for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2024 15:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Aug 2024 19:41:02 +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.172357803315459 (code B ref 72570); Tue, 13 Aug 2024 19:41:02 +0000 Original-Received: (at 72570) by debbugs.gnu.org; 13 Aug 2024 19:40:33 +0000 Original-Received: from localhost ([127.0.0.1]:45537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdxNh-00041G-5V for submit@debbugs.gnu.org; Tue, 13 Aug 2024 15:40:33 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]:43242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdxNe-00040u-M0 for 72570@debbugs.gnu.org; Tue, 13 Aug 2024 15:40:31 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 23D4E3C00D400; Tue, 13 Aug 2024 12:39:51 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id gCPQBJcjnAh5; Tue, 13 Aug 2024 12:39:50 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D32293C00D403; Tue, 13 Aug 2024 12:39:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu D32293C00D403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1723577990; bh=gMnjqTl2v/OXnaCvLF/Hq343w+1Byyb4jE/jnCMmYqo=; h=Message-ID:Date:MIME-Version:To:From; b=e5sT+Eg1wyj9HXMOJkIeyZ5IIhDMtPdqI1h4I5lgZM0khFqFNYBrS437F0TwHgBBb ZVbxGNtEWW9/FObnBhE3PbQZg+9oudlc6630kmb7xJlNpivm581xFb8wkIGCs4oVZL 80PIFwAz/DA5uEeafKyvxujNGpahFDTkN+17i+eXORnKr2bLmldjXQR6lYdqz5ZAYU BjdCto178rsZZhjTqaVO/amMYzekqFVe9alTuSvP9CJ3uPVz1AarWB4PfttlJ+/3Yv QSvID/T0G0j063F4lWC1lsbClTOB+kbkCpr7CHwwnb6ijIjnKyTDKQ8P8w+CU4+g+Z Fl0Mw+vOp1saw== X-Virus-Scanned: amavis at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id F5aGnMlFRflC; Tue, 13 Aug 2024 12:39:50 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.154.17.165]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id AE6443C00D400; Tue, 13 Aug 2024 12:39:50 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:290088 Archived-At: On 2024-08-12 22:55, Ulrich Mueller wrote: > don't we have a chicken-and-egg problem? We'd need the UTC timestamp > to infer the timezone, but the timezone to calculate the timestamp? 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.