From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 YC5yDpBMmGMdsAAAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 10:57:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yL2ADZBMmGOaPAAAG6o9tA (envelope-from ) for ; Tue, 13 Dec 2022 10:57:36 +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 CBB642FA9A for ; Tue, 13 Dec 2022 10:57:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p521f-0002d7-Nf; Tue, 13 Dec 2022 04:56:39 -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 1p521b-0002ag-6J for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 04:56:35 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p521Z-0001DN-7A for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 04:56:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 858A8240101 for ; Tue, 13 Dec 2022 10:56:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670925385; bh=TOO1h6r6hugjmWshtHLWWfP2hetjH2tIxN4nWP8t/zY=; h=From:To:Cc:Subject:Date:From; b=gLnr0CdpAcckHIS+OQ6fG+5V7iA3TfkCeyfCu8EuKZBZDctoo3PtNHobf1hEluJNe Xg8u3zg3vqNIfg5HW8zNHRzL8dYGjNhde4muFI7LQ6JwudIB9EUf0gO2n6uzvE7TTl meUeoe8PJufNJPp9QdnLVxHR3UCuJdSLUFlge9sIyO/sd5NLhq32ZFssn0l6Tw70Gl NiDjoJk3TZUCY016Zbg1NnJXR99O9KILWASHiawZAcF6H7fv+rUVuCR7VDAzc7G/B/ qRaPjb6T/z3TkV6ATJISc9ChT461nhARES8gxnncxhvVpzO3ZoztqPk4LLiXw6fAHt oMCrpP1NRMasQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NWYmT0R6Xz9rxB; Tue, 13 Dec 2022 10:56:24 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Two problems with export to Google calendar In-Reply-To: References: <877cz3l6cl.fsf@localhost> <85f7d530-5d76-4bf5-7225-40d7e3011d0e@gmail.com> <87sfhkg1sd.fsf@localhost> Date: Tue, 13 Dec 2022 09:56:24 +0000 Message-ID: <87zgbrd3uf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670925455; 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=FKvvutC7aOehNvEIdvs1PcsQC8S4E8a19spWZqHyapM=; b=lX8S+8wcPeoRkA381h1rON7CMPdaqLEEmRMjfKDNbc621vilrMjXIBUvJxK+unyfuoAHCh Ai2UOqiVr9Sbh2Wvd2o2NwLoaSxbBi/H+wbVUo7NIDgYzE09jFydpTYMjgTf3yc+EvIcZy 1O7vqg+JRG8DuKIxn4NaaG+fCpB9lqs5ua8M3uk8qmMGNws/f3ArQh/nnjAqxhl0mhehyl jFMVUROHavdJV9lRcZGqV0myEkFkmke4WeT/1jNjSV/aZoR1RUvmEyeOovYjvt+HHuaWsA m6K7J0XA5kssAbS3fLkiYfpAuEvIGBcv9DPaW2OyE0Fdp6Z5Qk5V+m6b0MiWGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gLnr0Cdp; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670925455; a=rsa-sha256; cv=none; b=C/PFmrwc0/3NJjRgLdjL2DX4fMDxyWguXbOyXp7qM51g3X8467omIRRRCiYZNa+q/t9uCA XkazU7oDXednhFR+JNtCTwZo4pcttjScM8eFsXaSWL1yXVltsWsSItojbN7I0Bwu9rPawL mrAHw6cM2knb9IVPec6XZi/zpqj8dFCqN5NTD2fkRGsg1wRZ8zxkq1u11fPaB1+TlHXVR/ cTyP0/cHY5qcxG46Q9OzOvUOh8zHwQsEBBQVAbCxG7N3VHhyPddohuKOsCeLSoVrWqrrBV T5iWnULmnWc3NkfZKfD7cNnyU7+38pyhkwyOS5jaSlzRTloqMjLEU4sBwd6A7w== X-Migadu-Spam-Score: -4.36 X-Spam-Score: -4.36 X-Migadu-Queue-Id: CBB642FA9A X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gLnr0Cdp; 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"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: ITx9cJs1Qj5p Max Nikulin writes: > The TZ environment variable is not set and that is the issue. Otherwise > the .ics file would have > > X-WR-TIMEZONE:Europe/London > > The problem is that there is no API to get time zone identifier in elisp > because such function is missed in libc. It is possible to get only > BST/GMT (depending on current season). > > Identifiers like Europe/London allows to get history of time > transitions. (format-time-string "%z %Z") and (current-time-zone) may > only report time offset and ambiguous abbreviation at particular moment. > Return values of these functions may vary for different timestamps in > the calendar file. If list of time zones were available then it would be > possible to iterate over it and to match particular time zone by > abbreviation and offset for most of zones (perhaps some ambiguity would > remain). > > Actually `current-time-zone' is an example of fragile API for *current* > time. Offset is valid for particular moment. There is no guarantee that > offset would not change between obtaining it and applying to a > timestamp. So the only safe way of using this function is with the > SPECIFIED-TIME argument. In such case *current* in the function name is > confusing. > > So in my previous message I was considering feasibility of some > platform-dependent code to determine time zone when neither TIMEZONE Org > file property nor TZ environment are specified. Thanks for the explanation. I do not think that it is a problem Org has to solve. Rather Emacs. Or even libc. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at