From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6Cp5Cj/MRWLQxwAAgWs5BA (envelope-from ) for ; Thu, 31 Mar 2022 17:43:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eBDoAj/MRWJRQgEAG6o9tA (envelope-from ) for ; Thu, 31 Mar 2022 17:43:59 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7758C38A8E for ; Thu, 31 Mar 2022 17:43:58 +0200 (CEST) Received: from localhost ([::1]:50950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZwxp-0003EN-Mx for larch@yhetil.org; Thu, 31 Mar 2022 11:43:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZwh4-0006lw-Tq for emacs-orgmode@gnu.org; Thu, 31 Mar 2022 11:26:38 -0400 Received: from mail-oln040092066050.outbound.protection.outlook.com ([40.92.66.50]:9313 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZwh2-0005R4-P1 for emacs-orgmode@gnu.org; Thu, 31 Mar 2022 11:26:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OLp1AvTt2fVA1FN+BQArjwsKA8FDu0e2UHDVamN82CbvAn7S1wYiYygvC02iSShbN+E1IE53b5XjId35qJO85IzaxBe+ZuF6khLFfJV6hZ1Iswkew4oy4XQ0rgEBVmHkpSWvmabCwuN5Q7vLMkLeykRt4ctjAsHFyobDdqEluMal3t4GhsrWgl12PjsMFV7H9s1i0RV1dnW4xjQ3EdzbNHHDdEeQ6qj6uHoJwM3SE7CVvx2RaIdK1msXUeXOJnsikjzMhT2EAUhc/48VKN7AmREZ0KmZtyiIdq9cYXvLgDroGyjNfeVnNn1XhcWTrdAPVrBL0GnBCSPuaBwjnSn8/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Cocy1bN+nAZIuRTKy9b50w4y2n3OTohVU6Fon9K6Z8E=; b=YvuXgu9m4XSooNxC21CP7JipBaKCKXxrQmBSEkQRxBxy1BfAWDLLVntAe6vAbUWDPd9YtEdKLzf0r4LB1uIpnRiudm6iBOtFLQ+iKjGGbRw0IXxvuiXbCngHEySP+mm5yutldwqZtYWaUsVs9BBZI0nK4hZYLFGkmb7L1O/gjJYD7STtUO+JuAcpJRbYdASuVb6n7i2BOgSVYVALIfmnndovNAi1smAfoJKtvVKM7qFn3QzfAfDUz0dfgISWGWP1MBjSRyWL9yGz43tfzH3jul82AQhSTfNtM7n1gJmYawcYgmMOT8MJg4P4tNEhqRfpA0eOAy3ZF7xnqTZcNSWF2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cocy1bN+nAZIuRTKy9b50w4y2n3OTohVU6Fon9K6Z8E=; b=SDw66YokR8xhmjk5Us3NRn+veWsHbfJKcPlKO++DQbZh48KhbiUck9ngbIfgt1TeOnfMELERqyV3ErcI5dphH9ZInU2xi7t4XcIYdSsYySU6ZkO75EykSlPiiQWN2N9aApQf6oObtw1hDYju8Zta6EE5EdGY2ECToz/EmKtwFAjr/V45YT96iNiCKF8OG1xyRCxd8Ny0QQZL8UpffsnN3hIkeMm0BX8u30ApRWTc0DxO6d6LjCJYkWjJPMKjkH6B7y8e4geN3n+ZZiiiO2saeN/YM55aNduJ7Chjol2mKm9NjyfaXdRmSTZRMvCgDW38IbHjZxQ+5FSbA/540FPrGQ== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by DB6PR06MB4133.eurprd06.prod.outlook.com (2603:10a6:6:50::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19; Thu, 31 Mar 2022 14:47:26 +0000 Received: from PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::e05a:8d81:8648:b10f]) by PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::e05a:8d81:8648:b10f%8]) with mapi id 15.20.5123.021; Thu, 31 Mar 2022 14:47:26 +0000 References: User-agent: mu4e 1.6.10; emacs 29.0.50 From: Ignacio Casso To: Max Nikulin Subject: Re: [BUG] org-agenda thinks timestamps after 23:00 correspond to the next day [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)] Date: Thu, 31 Mar 2022 16:11:29 +0200 In-reply-to: Message-ID: Content-Type: text/plain X-TMN: [iO4p2dO01/WXwR8jcRxepqEMvPk66Prw] X-ClientProxiedBy: MRXP264CA0031.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::19) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87wngaxjpi.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fb9c8064-bc36-44a6-7c3c-08da13255f34 X-MS-TrafficTypeDiagnostic: DB6PR06MB4133:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qp0m7KwFcbgSLJ5GEgNoqybdsTe95DqfRakM0aDkHIU7b2Ru3JvviM57sDiV4vADOyTa2VaDop9tO5xKJDcpMZs5UDb1HNngMTMY0NMl1lp18O1sR94xfr1pQoDngdLL4WtR3xN2yWW/2t5N2qs6FWYIhGX1ZHsSirg69egiwgSFjeSYaMP3SwtcPdAadizRhoQS3lL1lAIfCR7XubS8Z2oHzMERZpgaUpiLfV/t/v71D6mSqk9hFMzsYV5MhHm/750ubIxt1pXEZV3mHbFu+F3vC6fok5FXABX7/tPpzKQMeczIAmHVkCJhUkELnXmcMqwS8f6yIKw5XkRqQKIwZSDKqK1tEM1xFzjP90eSfUTV1vL1SUhAojJbWmEB1GnYvAVwaPToKVYPAE1/o8rez9rIbfS0cm6DxqZ0yPSYjblKnZwX4yaQFwUqADWRJaLWlj5sKBvm1dAVTP2QRJKtHj9o24LMf6PwmPdIKEK+uFfKdGbqk7v6YItQY9sCoqcMIk1xsdniYiJMeZlPYplSpw5aEaRIoqxfCA1L/R6f/Ga+bTSbhlEJT6k7hCVZTr8z6u5mZE3iKQHJkH8pLMvZRw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?dG5qq+m/fUiSFnHrOJDo4L2TzKl3dmJKjC35nXvmthbvnqPbSFmAmEa6JF3e?= =?us-ascii?Q?rNJPZXHBzWXlmtdQmAF+74sZwOGOQFvy4RF+7vp1EsA7YBbvNeuSf9vqlZRk?= =?us-ascii?Q?Xwdbh2I8zlxCMgUoIQUjd2ciY1xxv/5sej+WHGEmn2JAQzLZZNjn7pbWzEhG?= =?us-ascii?Q?+XRx4IK6NtOi2TVewk+t8b4CvnAaLV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us-ascii?Q?VQyZW2POgpN+ZGePCeg/HO3+1qoLIDw/Qo3hN4gy8RM4E1DtfKnKhZzn3lyA?= =?us-ascii?Q?9aKObteo26eb24zUbyGPb4vNfILFJxhnCOGlxUWpPjMVi8LlUxYmBFy9z1FR?= =?us-ascii?Q?9OoUX3BIyb6A69Vs+m7xcCjNz0UDpsqLbeShv1gHc/osaoHlaAd2xbp3gPjl?= =?us-ascii?Q?OrJkwQIBSgNprH2egQUm6Zh0S69voBGNbvogTPVn/x0gNylQafK8DdmoRq5L?= =?us-ascii?Q?63nEqFuNW9aQW7f3m/khC+r8NR2ZV9ImUchG44N0MmDjazcMk7hESTR8eD9Z?= =?us-ascii?Q?rXCZtgPQ21vitv8W6N1lc4WpprdkWOx+j4rFdJZ6iBDMhmPZErq5iQnRP9tI?= =?us-ascii?Q?72RmxppUyWI=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: fb9c8064-bc36-44a6-7c3c-08da13255f34 X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2022 14:47:26.2244 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR06MB4133 Received-SPF: pass client-ip=40.92.66.50; envelope-from=ignaciocasso@hotmail.com; helo=EUR01-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648741438; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Cocy1bN+nAZIuRTKy9b50w4y2n3OTohVU6Fon9K6Z8E=; b=HqWxI4RzaaKMoEU1pF18a2RLyNLOnxEsdXWddLM7Yd/ev1j+3DsPex8o3ZOa9vexppwZQQ 9jgxSkwaknWKcOfCTHt7KBg2NlWG8z5llxvG3As4GbMBz/vmr03E4ajiMKZF4QbPFtk6ir ZDbjd73s+pQCT42zHl3wT7f1h8KbUNfNTofoq99MziWB2+tVRngA+jH8BlNnVu3mxPhU+6 vn8UCEMsHE45l9yZz4uFkfD2Dvcmvb28R/YmBa6DYmTXVsjzCeIFFJ2AhWQbhmZLS2X+pI rdyn1mzj0vUrIpl4K3/ZMZzoPwRjBZUTVFk1bupQYd+GUgTf5R3Kz0qhMSm/yg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1648741438; a=rsa-sha256; cv=pass; b=DrtlWdlOw4y3SomVnmE7vByUGWW03zLEy32ePd0cSGft/TTlrnH4iHPHJsAYXbiu00xUbl grqNhnvOHD9bW9DwqzCf9CdWUkaJ1eqj7V5+Dy77YaWMNSg3KQwTSXK9f6nARVqm0X99Ow vWLDgyIpaUxPPLcN6zXY2D2kdD5oJPISJlwaw8m+zOvh35YcVohk5H278MQZBqX972J40m /5Q6Uwnyqcg5CSY+vfCOB+IAzvoDJBbx3/i2MZeEfbmXL3z5iH027qJQrSfvtZeQmUYIci BM4Td+S4kzbuvSz8j5bVDA4KJ5CQr8BK4OaHtiewF7VTh+Qm2TWfcXJhUvrUyw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=SDw66Yok; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=SDw66Yok; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7758C38A8E X-Spam-Score: -7.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: dYTU5hvH1Izb > > Ubuntu-20.04 LTS has emacs-26.3, so... > > Could you, please, try > > (encode-time '(0 0 23 29 3 2022 nil -1 nil)) > ^^^ Thanks. Using -1 as DST argument indeed fixes it. However, while testing that, I've realized that I made a mistake in the bug report. `encode-time' and `org-parse-time-string' return the same both in old and current Emacs and org-mode versions (by old Emacs I mean Emacs 27, not 26). The problem is that in ELPA's org-mode, `org-time-string-to-time' is defined as (apply #'encode-time (org-parse-time-string s))) and in org-mode's built-in version of Emacs 29, it is defined as (encode-time (org-parse-time-string s))) and those two return different things. In the second case, the actual three last elements of the list returned by `org-parse-time-string' are used, and they are all nil. In the first case, according to the docstring of `encode-time', the last two elements of the list are ignored and -1 and nil are used as default. > If my guess is right, `org-parse-time-string' should add -1 instead of > nil in that position. So your guess is right, and doing this would restore the previous behavior. However, the curious things is that in the org-mode repository at git://git.savannah.gnu.org/emacs/org-mode.git, `org-time-string-to-time' still uses `apply', and always has. The change, and thus the bug, was only introduced directly in Emacs 29 a few months ago. So I guess this is an Emacs 29 bug? I didn't know the two repositories could diverge like that. Should I report it to Emacs 29 maintainers? Or can org-mode maintainers fix it in the Emacs repository?