From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iKKjDjKkkGPWCgEAbAwnHQ (envelope-from ) for ; Wed, 07 Dec 2022 15:33:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MFbADjKkkGP9OwEAauVa8A (envelope-from ) for ; Wed, 07 Dec 2022 15:33:22 +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 ECB6FA7FF for ; Wed, 7 Dec 2022 15:33:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2uyj-0002c2-0F; Wed, 07 Dec 2022 09:00:54 -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 1p2uyO-0002ak-SC for emacs-orgmode@gnu.org; Wed, 07 Dec 2022 09:00:33 -0500 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2uyM-0000Bz-Jy for emacs-orgmode@gnu.org; Wed, 07 Dec 2022 09:00:32 -0500 Received: by mail-lj1-x234.google.com with SMTP id x6so20983890lji.10 for ; Wed, 07 Dec 2022 06:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:cc:to:from:references :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=KSQrtTPDLYKQoVzN5eAe8tWjDJT0+26ez+ZNGM4zCmE=; b=Mxj255OeZyoh4lCNRmS9gRkl4q9a2H62SaIUaOYAa/r3chtLEMZHlpUF/1NZDmf1i/ QFqBUh8M2b2VSYJvMZskJWbG/U2K4CRseUiWt81BiHU336YWRNIz2en0rkdZ9lAtoH+r t36NuvAJw33eGUpOhWSC8gQGc3ot7nWj7zu+z/ft9UMB0Z3P60ayoX3tuQ89lKWOqcVj 9p+Umd9CDFsdXTlb6r1DON5tqwOLPqZWt9VtYO+gxyp9AiRLa3voCK2v9iksesO17HyV Yx0tUMNolYV/u22vot6jtMvJmewg5Sveowdp1fWeWS8lUGJ5TSE7dvqRyHsjLaBjpFL1 HAQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:cc:to:from:references :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KSQrtTPDLYKQoVzN5eAe8tWjDJT0+26ez+ZNGM4zCmE=; b=wPwysffY+upxgnMFB4zfLi+7HhWGk2ivRzHRNcNcasTOT+Bhg+JrWEROEL3xgsbffU ntMDnrwIl9kHYD3RFfCaJLrcFOekePex64BXQqeYZZHBBnw8d/nU4h59Pj1wgirlRYes o4zaNwmrv+XWn/UhvvsQdcelbcIoK6ikunXJtC3p1q+Pf0pXAkjnoQ0JvpEpQw/E+6FV yMLsibRERBUC6/RZraqsn5JQUofWjDfRlC1T8XsMM7BJ4M6b6wPVIw6xG4PX8H5nJ5H2 5pOCP+wt0BO+l6X/YowZrw4vgsnsPOV3jEoTmvCdh+huqNsTatJo2ADpVKFAWd5rPS4H 6IBw== X-Gm-Message-State: ANoB5pnErU/wXkUBHtu/ftvCTzcGCZ09q1SatZIoSwUVjtQjtqYMnFDc MZuq/ix4yNgTpDX4qip5k4VFay4xe8c= X-Google-Smtp-Source: AA0mqf5bFkjc255cNpTmVTu/TRN7bPDxmaY5HwU5dyThPjyd+LUsox3aF58nZjwK5pe+LgDneCuSvw== X-Received: by 2002:a2e:b4b3:0:b0:27a:2d4:f41e with SMTP id q19-20020a2eb4b3000000b0027a02d4f41emr3534107ljm.263.1670421628046; Wed, 07 Dec 2022 06:00:28 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id m7-20020a195207000000b004b5821219fbsm765627lfb.60.2022.12.07.06.00.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Dec 2022 06:00:27 -0800 (PST) Message-ID: <85f7d530-5d76-4bf5-7225-40d7e3011d0e@gmail.com> Date: Wed, 7 Dec 2022 21:00:25 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Two problems with export to Google calendar Content-Language: en-US References: <877cz3l6cl.fsf@localhost> From: Max Nikulin To: Org Mode List Cc: Neil Jerram In-Reply-To: <877cz3l6cl.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=manikulin@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.262, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670423602; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KSQrtTPDLYKQoVzN5eAe8tWjDJT0+26ez+ZNGM4zCmE=; b=UJ8VQV6Hdltq4rxFPMh/SUzFYYWKUijS7kJx7OtX4uB2mHh2u0cACiiwe37oAjG92QsHNv D0FxaQMUZmlmwPgigI3wJ8F8ip7O/W9IIc02wdCss2OxtOoOrcSjkhklLdQs1GLQaCGIu1 5UN8FVFsrwzYfMbQPJIP0HJqyim+h6hCBl7GJrf8x0K7Xdx27mlS4IBV0HSeR4yCM9HUSE Xasq3Vx3fJ2b5L2mD49FzW1CbDvmKUETjVtRH9HvOdns91nXbN7fNeVHCvBz/twIxaZbnp 3P6jx9jacS365nKPl8LzguFT4dp55+NCn7MseMMjv3/3TGODxwbYgmUDdaZnHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670423602; a=rsa-sha256; cv=none; b=koUVGy6DJpWuAdRlh+Fk8+rWnjegoSuUpqWyT7tRZXiprINyTIpn9gtZJMUVhC6fqqCaFv VM+lqxGgiI2z9te5UF0yBGuhaiV0F1LNALpW5jhwzMOFydmFIc3Rm4YVIKZ85J990i37u2 Ljo2R0qR6M5rHPqeOSKFuvTZ1TTxeRpSmmF5o2BqdV5FtHwvRKChg+ajlorYAUgzymEJnt aop7UzUPQ8DhvjOmkMBKR21ze9mh7xWA2wZvghe4v+cfoqJGuzP9XZsKzElaLQE0OLqBFC QIavtpKW7q8A3i2wd4c3HB03U8/XEtHexZk748tmFViZcbRYUzhySwkIEYPzzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Mxj255Oe; dmarc=fail reason="SPF not aligned (relaxed)" 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-Spam-Score: 7.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Mxj255Oe; dmarc=fail reason="SPF not aligned (relaxed)" 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-Queue-Id: ECB6FA7FF X-Spam-Score: 7.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4qT7yz8ex6Vu On 07/12/2022 19:56, Ihor Radchenko wrote: > Neil Jerram: > >> X-WR-TIMEZONE:BST >> >> which I think was intended to mean British Summer Time; but Google >> interpreted it as Bangladesh Standard Time. As a result, my events >> from Org are shown at the wrong time in Google calendar. > > By default, ox-icalendar takes the value of your TZ environment variable. I think, in most cases TZ is not set, so (format-time-string "%Z") is used to get abbreviation (that is ambiguous). On Linux we may try timedatectl show --property=Timezone --value during generation of export template. There is a chance that init system is not systemd, so the command is not available. It is possible to get timezone from /etc/timezone, but the code would not concise since it may be a text file or a symlink to the definition. I have no idea concerning macOS or Windows. Emacs relies on libc to handle time zones, and there is no API to get the identifier. I miss the option available in modern browser JavaScript new Intl.DateTimeFormat().resolvedOptions().timeZone I have never read .ics file spec, so I am unaware what kinds of name are allowed for X-WR-TIMEZONE.