From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cMhVIYsXQ2I4UAAAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 16:28:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0PCxHosXQ2LkRgAA9RJhRA (envelope-from ) for ; Tue, 29 Mar 2022 16:28:27 +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 DE91DE025 for ; Tue, 29 Mar 2022 16:28:26 +0200 (CEST) Received: from localhost ([::1]:50906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZCpd-0006nW-ME for larch@yhetil.org; Tue, 29 Mar 2022 10:28:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZCov-0006nK-2O for emacs-orgmode@gnu.org; Tue, 29 Mar 2022 10:27:41 -0400 Received: from mail-oln040092068067.outbound.protection.outlook.com ([40.92.68.67]:37198 helo=EUR02-HE1-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 1nZCos-0005vc-RT for emacs-orgmode@gnu.org; Tue, 29 Mar 2022 10:27:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WxCLOGZl+xEddRnAMI8232CvXaCGmUyXfe0BgvA7/ejIKRfPBOWLdF4Yz6DV9AR3P99Qp8QNb6SdpJEaxV4Uia78FD2B6oxGLyZ5DJqDdzIn5JSvG3b1qTeokyCTqdr7EvJjCRKmfYsh4NDq/7AK4NZtFHb5fOi0DKcithSV01mTosuSALahnlKHLS9FVsW+iGWlUVuVekNYjSUpervr8HkaJNz4gEvLIsp6sFzfzSTBOUzW0UEfsjK2wd8K/LCW0flaUTR2gf/aqe3YbRb0KElTdR5S11ZauqBiBCOrOBx/om7xy2jeunftmkdYjbEFNxqGHkfWO3qLQER0lWwrNQ== 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=RjEQhveBeFukJ13mD3YnUAV58KMagY65M1lBSSgAsbo=; b=P3Unit3MoRmRtMc+gzucstFVm/gC1Amtiaxw//DmmgMkVwTRlUAlbnlczc343JCJ3t3N3NT677G8UcMFUNQEm/bg5j5tQB7vo/4GxV0ZxSN6T8V9/iHWljIolPunMs2vGABJlRZxZ/8UwYIUqlLl/1WmmP2qIklCEjuPZWhbbakDqGEjAaXjv5ywG/iMq+4D2biX0oRnelO8b86LfmhtnL00qmp7NxTa52wsXzprmbEWF3LkrWvJYnNlHr66/1Curxd5l8KaTOmSAeuFS6jADDdZrGqWct/QxvzQL5KJspMRt+OlYmRmnIA7pdSAPwS4K8hwqVFkpXHkIZDW0ZoSUA== 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=RjEQhveBeFukJ13mD3YnUAV58KMagY65M1lBSSgAsbo=; b=LI0wUcrjK8PcxbXNvZY7FE90kyHiiUCNqSmnuOkVa5r99QiopDA/HT/PFFZ9kzqGlZGb6QM3sqRqOK8nCKC5mKJ09Lo2i+BMPCfsW55hPnWJhN0acVK6aJy2RxUkxnmWIjKhgMO3IFa+H2BFaNgwtquIkb6rqzOky8RUJ6vHr7jKHlUeksdYV56mE1oF6IfCzCscdAgyQwvdjLuLC6uB5nIIa0Hv3+He6t0MjSQjYZk8TRKY8fAL2VAllLH/MXQGv1U1DQYUYVm4pAzanCsd47grOdSwx5L6g34pHt690yDJAAZfPQ72zaTDcTFbW1Szb2/n0hK8gf5AilHGXmT5Tg== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by VI1PR06MB6495.eurprd06.prod.outlook.com (2603:10a6:800:12c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.17; Tue, 29 Mar 2022 14:07:37 +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.5102.023; Tue, 29 Mar 2022 14:07:37 +0000 User-agent: mu4e 1.6.10; emacs 29.0.50 From: Ignacio Casso To: emacs-orgmode@gnu.org Subject: [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: Tue, 29 Mar 2022 15:09:10 +0200 Message-ID: Content-Type: text/plain X-TMN: [F6qagAfJicmdX/5CuI5QN1AwNKf5KUTs] X-ClientProxiedBy: MR2P264CA0025.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500::13) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87a6d8zwbg.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3a27f751-53ef-4dd5-8ab9-08da118d7a5e X-MS-TrafficTypeDiagnostic: VI1PR06MB6495:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k+mcxEpMVJAZxey6Ol/ShILY+K3fuKrFdNsxGL9tW4CfPTUKjig2c9a8l8LnpqcfjtyLTeGX/ei7r2iNWp56Zij6unb4w4ansyxz+T14X+WoPaCWN4yWMPwaIVVd+TStiyPqw7rTTzcd5DSXZPmjTUZzS8pE8YzqK/4LVJyhAaTrwiaAvm4H31N6CgoPUbktwUjxkvlFGEyd3BW+7Z9033djmTzp5+sf+C/TjMfKzhr1ubEhu30cvWGRFJK7BPN9wAQE+SMYkqEEojBBmyiy45PxEp6+ATR2HoLnzcinu3j7f4uwu5NrqsHuW1TEKs8ObRnrIZ+Igzrew96yZleS/3Ous0hu6VRuLYQ34V5AK+AgU0Fa/QFWExbyh+O3iNisl9OEZTg5RQcErsmFTZBtA3XLnnHiCth//vJIDpevXCxIR1nPB6RR2nnjNOx9hfh8k4iDAkcbEWJGj/nasEvzA4T7SpgWqIPEA6Vu3lL4rghSY7NGhLEdNVqYeCncfBMmvF9MDO8MFEDO7vKRG/Ug3bpN3rwKUmnuxc0Vyx+/ugVCempa/PtUsgSCeJ09eM95g8Gu6ZJ1AaYVRTkAR1CJ1Q== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GGKW8dG9RyDkUBAbCGPA2uIG1Ix9JhsucRMI13y4ef+yTDP0RlGDbGnHRQFH?= =?us-ascii?Q?ZZfd7uaPzaEPrdoZqsWO9+3nxU0R8EatzcbLt451XdZZf1w6zf8yuPxlNMBU?= =?us-ascii?Q?LCSRVo96VFfR5AiPKtOaSDAqwNozZUbIUnvrDHjO4X4GNAxrLOm8xssEuEqb?= =?us-ascii?Q?CXLw6hqTqnp6d2oifqx4mZbu+J3rO92OPHXAz3tjc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ouk8a0y966FGBS0hLSTN7IKza5Xmuh+kuB?= =?us-ascii?Q?nu43F1rQs8KRS1OT2iM7YyjAmmDSHjOO1LTbabaMFwGV/9t0z0BmpRNwnqkL?= =?us-ascii?Q?Ws5MwBfPoa5oNJUGQFv7H1frh2ezXk+yMuq7/7NHm2LzbWOK95IXq6h4yjo5?= =?us-ascii?Q?ICqbUuhYyuj4oUIBK4fa024xVWKSj80NTzYBEU8JFvR9V9WSLhjOKeC/0AWd?= =?us-ascii?Q?oslP3r2ynIm7Kt3u/+3XgR0uKmAWhRFg9tNa/a1CH3GyftZdHpOgKXtbGFGM?= =?us-ascii?Q?uU6LMtxKgoUZ47yJTngc3sbHFuYrbXDqmQ0YjxEyxkammEZTMRYCDvGMEHJd?= =?us-ascii?Q?mSXYI2CgPUlQ/N0r82eBaIJ3P/KJUUFC?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 3a27f751-53ef-4dd5-8ab9-08da118d7a5e X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2022 14:07:37.8060 (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: VI1PR06MB6495 Received-SPF: pass client-ip=40.92.68.67; envelope-from=ignaciocasso@hotmail.com; helo=EUR02-HE1-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: , 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=1648564107; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RjEQhveBeFukJ13mD3YnUAV58KMagY65M1lBSSgAsbo=; b=usG6P4yvTwryV/2Q9/FZ3906fGHh4BXnYYnGGH+llNtphQAL3zavacgB+1KmLUulabIduA 5wM2xpiKVnVYukHCUC5NYO+4snz32zwWEQy2ehkLTm9jwDq5tZ/4YGWw/B2VmchfWA70GE nOTDDYYwXKc94E4BYbx20GCoy57S5zNal1meFfMc9/m6V1URhUFHI002IlsX8YISTpSdNn V/BuJh/VwyojI2wtsnHTD5mC+cjrV9s0MpRwEdlSkNf9V9JX9IKQCYqOJTveDVruB01K32 tYxsEv2uTrnMGug0P0nXAualGwnCxou42P0ts8IyKelG9YWhkA5vDSihZEIyjg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1648564107; a=rsa-sha256; cv=pass; b=gYWleKwETC67D6VjdJWctAAion+2CldGgcEfZ6c6h5EgKJWmT7k78FLpo1UO8zxaAbcJrt /pwsXetMg9UpmAzD5prPPPmLdSbl994FBKJUUKK3tlyAmiTpfcxOVJbRj5Lf1NyS96YRyK PA0nzbWKd6auMHIAyd55DsoO5+Q7pv7tjLmA1CU/u1f7DTs4yT3j0I+INsAf75lPl8WfLP cfNZzCV6mM2r2iskehAa/XXgEhLPMqw/Yk7GzU4KsVechpkPOBL7dWDdbSJkKVkRUDSgpG v6t8VYbOWf0wXEQ8LiA7G35qGRESKpKbucrg8DNxcvTVEmmP9z7qp8NXL9kbCA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=LI0wUcrj; 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: -5.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=LI0wUcrj; 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: DE91DE025 X-Spam-Score: -5.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: AifSiKQCsJ3x Hello, After last Saturday's hour change in Spain, org-agenda thinks that timestamps after 23:00 correspond to the next day in Emacs 29. I'm not actually sure if that is the reason, since I usually use Emacs 27, but I guess it must be that if I have found out three days after the hour change. I have tried to track down the problem, and it doesn't seem to be the fault of any org-mode code change. The problem is that (org-time-string-to-time timestamp), defined as (encode-time (org-parse-time-string timestamp)), returns different things in Emacs 27 and Emacs 29. Let's consider the timestamp "<2022-03-29 mar 23:00>" as an example: 1) (org-parse-time-string "<2022-03-29 mar 23:00>") returns (0 0 23 29 3 2022 nil nil nil). 2) (encode-time '(0 0 23 29 3 2022 nil nil nil)) returns '(25155 29520) in Emacs 27, but (25155 33120) in Emacs 29 3.1) (time-to-days '(25155 29520)) returns 738243 3.2) (time-to-days '(25155 33120)) returns 738244 4) (org-today) returns 738243 Therefore, org-agenda thinks that "<2022-03-29 mar 23:00>" is today in Emacs 27, but tomorrow in Emacs 29. `encode-time' is defined in C, and is probably system dependent, so this is probably not an org-mode bug. But maybe org-mode code could try to be smart about this? I don't know if it's even possible. And if this should not be fixed in org-mode, do you know were it should? It could be an Emacs bug? Or maybe the problem is in my system? Regards, --Ignacio Emacs : GNU Emacs 29.0.50 (build 19, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2022-03-29 Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)