From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kIMLJ8v7ZmDSWQEAgWs5BA (envelope-from ) for ; Fri, 02 Apr 2021 13:11:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +Hr9IMv7ZmAjEgAAB5/wlQ (envelope-from ) for ; Fri, 02 Apr 2021 11:11:07 +0000 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 2383318DDB for ; Fri, 2 Apr 2021 13:11:07 +0200 (CEST) Received: from localhost ([::1]:50382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSHhh-0002bF-6v for larch@yhetil.org; Fri, 02 Apr 2021 07:11:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRrwr-0003jX-HB for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 03:41:01 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:40293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRrwp-0003Vn-9s for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 03:41:01 -0400 X-Originating-IP: 221.217.51.204 Received: from localhost (unknown [221.217.51.204]) (Authenticated sender: shironeko@tesaguri.club) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 2B73EC0003 for ; Thu, 1 Apr 2021 07:40:52 +0000 (UTC) Date: Thu, 01 Apr 2021 07:40:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=shironeko@tesaguri.club; keydata= mDMEX7LEIhYJKwYBBAHaRw8BAQdACTfA6LXJRYHsppn/mZ/e1cWpVEky7MYRU+8YrpBZM/a0I3No aXJvbmVrbyA8c2hpcm9uZWtvQHRlc2FndXJpLmNsdWI+iJYEExYIAD4WIQTNbfCC63zMnXvMomTp mQcVc8tpSwUCX7LEIgIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRDpmQcVc8tp S1ZhAQCLpjo3GlQmb76DPElPjm74yXnTe0czbtlrQn/YqKjciAD/c8x3g9yMPgxv+VSzBmpmdae1 uycvBv1Uc/f7Wj+iGQ64OARfssQiEgorBgEEAZdVAQUBAQdAY6iWG5gp1uspJqaTHdy3g9RyTyjT jviQ/LIYa1jnmhYDAQgHiH4EGBYIACYWIQTNbfCC63zMnXvMomTpmQcVc8tpSwUCX7LEIgIbDAUJ A8JnAAAKCRDpmQcVc8tpS23IAQD9cfIoXUuvrsqOlUulOQhb9CWIdr1a1PP8dz4Jp0u+kQD/Z6IP +3NesMYdzGfPuoDVcrLjpDDvmdXzlMKZGnLcGAM= Subject: Idea for handling timezones To: emacs-orgmode@gnu.org From: shironeko Message-ID: Received-SPF: pass client-ip=217.70.183.198; envelope-from=shironeko@tesaguri.club; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 02 Apr 2021 07:05:54 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617361867; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:autocrypt:autocrypt; bh=jhGmYxJmNroA1MF7Iw5Gul5ZMEwO3g63qeLdcbAuc50=; b=aSviYf1QV2dhKN6FLwaUH0zBsVM8CsP498MrLnOidnDX6KNizBcVNQuyLEpru3PnZr7lxg tPZczge4ewj5kxCJ+kDTBZ7gunkcw1UfL4bQawL4YLiPHYfuurrp4dwDjilVp3x6RMkz3+ i8i+B0vF50PNSW22LSUvUDQxDqfTWVGBcSSrveOZPxoQObHSdHohPVhBT80i87t0xmefV+ 7x6Ks6lZCS1CGqmHWT0qMfe94hsqtPXO6Wh0myNn8HE6fghjwh9wTw4UEzchUsOWCkdxCa f8maz8ZElcFwYFQ8cxx/zF90UgF2A1PN62saSFGkB3x/4oz6fYH0JX9pv6fjsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617361867; a=rsa-sha256; cv=none; b=ExCG+8ad3z0HUYGC5TxSyp9HiZluZ2O0KUbo3c1IeIqyLK+/s+QLXzS4twW2urKqRhyMuD /RTLs4XuywS1rvk++EI2cgONyak36mS2Z233Pj4Q4fF7vMHNusKQ4ScBAjKFAQuY9hNed6 8rHe5i/60FniRhpbBDMP+BxF7/oaugoOFyVAO7bDICez7muxXQGRpLL0A6xorIpbxdv6FF MzBX4/MQfezvddRf0M1unkspCPKDowhjlHqsiJqXDsHwbGpOMBwmYot1BaTHNsCvq3+etK y/4j88SBVaTcvEQjK3wSfLJrsd8umZeR7tx8UNZ1HIaA5WoFdPKvnfWpfTu4cQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 0.07 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2383318DDB X-Spam-Score: 0.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: eeDRsqfZ0f3Y Hi everyone, I, like many others on this list, have to move between timezones quite frequently=2E As I gathered from the archive, it seems the main complexity= in supporting timezones is the difficulty revolving the change of timestamp f= ormat=2E So I have an idea, suppose we add a new keyword, "TIMEZONE" that can be se= t at the start of the file like so #+TIMEZONE: America/Toronto This specifies the timezone of all timestamps in the file=2E Together with= it, there can be a function called e=2Eg=2E org-shift-time, that shifts all th= e timestamp in the file to another specified timezone and updates the keywor= d=2E Of course, care needs to be taken when dealing with dates without time, e=2Eg= =2E it should be treated as at time 00:00 when it is alone or as the start of a t= ime range, and be treated as at time 24:00 when it is the end of a time range= =2E Then there could be hooks that offer to run the function automatically whe= n it detects the user's system or emacs is set to a different timezone as in th= e file (e=2Eg=2E when they open the file, or opens the agenda)=2E This will make = sure the timestamps always aligns with their current one (if they wish)=2E This change would be backwards compatible, and it should do the job well e= nough=2E Regards, shironeko