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 ms5.migadu.com with LMTPS id mMX9DSMoyGNBLAEAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 18:10:59 +0100 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 SH4SDiMoyGNedwAA9RJhRA (envelope-from ) for ; Wed, 18 Jan 2023 18:10:59 +0100 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 C71A539B03 for ; Wed, 18 Jan 2023 18:10:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIBwh-0002y0-B5; Wed, 18 Jan 2023 12:09:55 -0500 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 1pIBwc-0002wy-TS for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 12:09:53 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIBwb-0005jk-45 for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 12:09:50 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pIBwZ-00033j-9V for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 18:09:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda Date: Thu, 19 Jan 2023 00:09:39 +0700 Message-ID: References: <86zgamtv6o.fsf@gmail.com> <87tu0t1i0c.fsf@localhost> <63c2aa9e.170a0220.3bb49.9ef4@mx.google.com> <87pmbhz1x6.fsf@localhost> <87wn5mlo7f.fsf@localhost> <87pmbelnd0.fsf@localhost> <87fscajo2q.fsf@localhost> <87cz7ejmgu.fsf@localhost> <63c66048.630a0220.427bf.a5f6@mx.google.com> <87r0vtiks0.fsf@localhost> <63c671c0.a70a0220.61aa5.56b8@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US In-Reply-To: <63c671c0.a70a0220.61aa5.56b8@mx.google.com> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.089, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674061859; a=rsa-sha256; cv=none; b=VhG+nsrL7wb7B4SxAPmSmMfIEu274aI4ef1VZ4cmEzwrmB03ngBC6J7X9Rbn89EKX6y0EW LrTnwOdxizpNttjz5oSQLK6x2y5SeIAMrF3rODcb9JNI1LHQ+oZuRd8xi5bskDN7jz2DCV 9NhliOLqcBW/VCH2tejV/R0xQxhVcR3MtY8/da5ZYC+ZX0EAldYMTeF6/Xg5SJyV/Snm3A 8cOheebnPullgC6EK4Ts+pNE6uAz6GbaXWtnDl4/vleDxSE8wRjORz+qRjtBjYo8nBZ1Rl 1kyrXFba7cTb6ePZPhylQ+bu4MnzXxpA722akTSXTsMxS35zZMSyf0TYcMgALA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674061859; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=WRc8scZ3lNHOk7KQPiLYS48SCqiL+b/tXhD8+8lVS54=; b=iFaHEruPBLVq+cmmc+0XzQ50AXGu3t56OQ64E8x643Y79oQJMHlUC+0wYidODbVw/6+9LZ vL8hdnPbCBoXOWXAvx2rSO8tXM1/5Kl+sSz+AGFzWYGhRIm9Yi5q3f7gu49M2TFi1PpOEX oFdU6AaWMNa01I343+Ov4GDc6y1kfFS5UznhodVFFaflnKISD9Ef5W52xuzweyw244eONA N0GaBNVBEhYrtZpiOupopcBcjJU2EuXishNmLWclUArs4BIQiIbzqMqEuSC2tBqJZOsg+J DIveVJYisYF6mHYrbBIkrgzRT8t+M4LADpleNlP83nkl7heHSHy23VqLmDrcKQ== X-Spam-Score: 4.07 X-Migadu-Queue-Id: C71A539B03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 4.07 X-TUID: 1spix2oHRH3T On 17/01/2023 16:45, Tim Cross wrote: > Ihor Radchenko writes: > >> Tim Cross writes: >> >>> It also seems that the solution will need some mechanism (possibly on a >>> per time stamp basis) for the user to specify what should happen when >>> either the time zone has a daylight savings transition, when the >>> timezone rules change or when the user's 'default' time zone changes >>> because they have changed locations. >> >> Could you please elaborate here? > > I have some meetings scheduled in my org files which show up in the > agenda. > > Meeting 1 is a reoccurring meeting which happens every 2 weeks. > When we > transition into/out of daylight savings time, I don't want the timestamp > to change. THe meeting will remain at 3pm. You specify time zone (globally, for the file, for the subtree, or for the particular timestamp) using IANA ID (e.g. Australia/Canberra) TZ=Australia/Canberra date -d "15:00" '+%F %a %T %z %Z' 2023-01-19 Thu 15:00:00 +1100 AEDT TZ=Australia/Canberra date -d "+6 month 15:00" '+%F %a %T %z %Z' 2023-07-19 Wed 15:00:00 +1000 AEST > Meeting 2. This is also a reoccuring meeting. However, this meeting is > with people from a number of idfferent time zones. When my timezone > moves into or out of daylight savings time, I need the meeting time to > be updated - moved forward/back 1 hour. You either specify time offset or a timezone with fixed offset TZ=Australia/Canberra date -d "09:00 +0500" '+%F %a %T %z %Z' 2023-01-19 Thu 15:00:00 +1100 AEDT TZ=Australia/Canberra date -d "+6month 09:00 +0500" '+%F %a %T %z %Z' 2023-07-19 Wed 14:00:00 +1000 AEST TZ=Australia/Canberra date -d 'TZ="Etc/GMT-5" 09:00' '+%F %a %T %z %Z' 2023-01-18 Wed 15:00:00 +1100 AEDT TZ=Australia/Canberra date -d 'TZ="Etc/GMT-5" +6month 09:00' '+%F %a %T %z %Z' 2023-07-18 Tue 14:00:00 +1000 AEST > Next week, I'm travelling to a different city for work and will be in a > different timezone. I need all my meetings to be adjusted except for > those I've already booked that are in the timezone I willl be in while > I'm away. You specify that you original time zone e.g. Australia/Canberra, since 2023-01-25 15:00 +0100 Europe/Berlin should be used and that agenda should be presented in either the "time zome" following you, or some fixed one (Australia/Canberra, Europe/Berlin, or Asia/Singapore)