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 +M/VDKv5dWKIkgAAbAwnHQ (envelope-from ) for ; Sat, 07 May 2022 06:46:35 +0200 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 qI/UDKv5dWIrvwAAauVa8A (envelope-from ) for ; Sat, 07 May 2022 06:46:35 +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 E4AC01C3D5 for ; Sat, 7 May 2022 06:46:34 +0200 (CEST) Received: from localhost ([::1]:53096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnCKw-0001QC-1X for larch@yhetil.org; Sat, 07 May 2022 00:46:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnCKM-0001Oj-9i for emacs-orgmode@gnu.org; Sat, 07 May 2022 00:45:58 -0400 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]:44111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnCKL-00031A-0y for emacs-orgmode@gnu.org; Sat, 07 May 2022 00:45:58 -0400 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-ed9a75c453so9229521fac.11 for ; Fri, 06 May 2022 21:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=RelGjNhvJ29xdMnC4TuQ8e7KYt4OW4SnhGiKUonrrcU=; b=FC56vmbdHdzfzbprwduf64aYNTE8Q9TcInz7Ki40I1mHLqKZzqR+LApO0kdY7E71Tq 4/URFW9xmvobv5JVD7x8e8suN5tGlaxqEl22gT0e1yrBdA4APs0aMkkTbJD1PXC8MKDz KkkFGNp6dX4lhBHQlAZ5CBduZki2BHl7uZdJcTJl7bL5rMcqjTfg7aLma8cBPSNrpwZw wY8/iPkiUnkBf4TDwsNhzksEGM+4nBvbe5HrMkEVHSW/w3WLYEQPDBMEj8u+N1zxp2ST DUoLWAAduvUIUMGGSR50j3eGWrVW/Z+dXo9GG2hbEvQrpQxinh2H37YfioFLwujPHZsU Zf4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=RelGjNhvJ29xdMnC4TuQ8e7KYt4OW4SnhGiKUonrrcU=; b=xicvY5XSmks5vwOwRUKqId39t/OfbNCtludJQXY7jtyZJZSxsNWyWRirrVY+y5Q/mo Gk+vbGHFPDrCsBQanTNwp3IniUxc1GW0X+Teu3gEIf5/xax87uxJHac179wQxoYCjCCY 608zewefsNtTts6+6laKa5NFUwJmhJ7oGlXZGX7KvXL2Fb+VfOW5JRWA8di4RMGfvtzA D2IoSkhR+7+l5nIqozdiYZT/n8Oqdwv+BtPww7ptK50KRAoWe7ikut5e0IvTFO8om3Gg pfxtMoTIEtU1RjGaTsUlN7I8O0J0P0IXuH/B6vuBCjvD8hmqdVDxQ9+Rah2WA4p2lL1S CCUg== X-Gm-Message-State: AOAM530IWWoglBKEMdiPJ/gnF0C/vJzpGqzSc6lp7D/WqMHHpAC1BsYN hNbzsj2eUAuaTexXGXZ9Hv6J0Y+0orT5sccd X-Google-Smtp-Source: ABdhPJw25jfOFsLdwdIkMDPogoZGNhViklTzx3+T32DTFeMmTZYC3VnzPmLEK3pUc7c+9hSZEVwR7Q== X-Received: by 2002:a05:6870:898f:b0:e2:c13a:44d9 with SMTP id f15-20020a056870898f00b000e2c13a44d9mr5642136oaq.170.1651898754743; Fri, 06 May 2022 21:45:54 -0700 (PDT) Received: from localhost ([104.223.98.2]) by smtp.gmail.com with ESMTPSA id s43-20020a4a96ae000000b0035eb4e5a6cbsm2692390ooi.33.2022.05.06.21.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 21:45:53 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org, Paul Eggert Subject: Re: [PATCH v4] org-encode-time compatibility and convenience helper In-Reply-To: <2661a0c6-a6a3-6934-16fe-7c987a6a1684@gmail.com> References: <7f4ea652-7d22-fb61-f873-5e92f078c9e6@gmail.com> <87mtgcmckj.fsf@localhost> <875ymwus9p.fsf@localhost> <8735hpk4ef.fsf@localhost> <2661a0c6-a6a3-6934-16fe-7c987a6a1684@gmail.com> Date: Sat, 07 May 2022 12:46:36 +0800 Message-ID: <878rreymoj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=yantar92@gmail.com; helo=mail-oa1-x31.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651898794; 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=RelGjNhvJ29xdMnC4TuQ8e7KYt4OW4SnhGiKUonrrcU=; b=d8UgtlpQb+OZoaIHTC7nOax3UzIdgpTfknQzBWZE6KKRU0GXiBT4vOd0GJ71dgCAWPmUTX i/o9hrN+aiODzd8hzwpO7SRfcAxzOePzY8DK5jkp9x1Qrrkyk0PfOu8QuD7MsLqqGbr04q DqE7OijigQAleltw20QKiNekf4yxON7yEPUFjrDAeaTuXloGtl3Be9Vw872dzDAgcEtPx0 bZBm5zifKk2Lq9OPolfiYMJQThSK4/u/s8VMf7jm5HmzP39bq7i4kGZGKXd9Lf+itu5S1D pGgtNOvsaRhRJsn0Six1ihesHpN5KYmfTyRuknRLVxUWteMZrQ4C00cVIu1jXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651898794; a=rsa-sha256; cv=none; b=jfQt218Djmciy0CpMDPKZMZBYCirgHfKdv07O2Ez1DsLEk8A0NDQMvT/bstB7Mr7r7nQFC 6Al2detUGAVMpSlEsu5vZh79Rx91NYcct1tRhsS7Z3VDtGcnAwnlOOvW8Pc8/6eQ96hktB xBncf2+8a/EccuC5DZC0VWZ93C48U9TCtzZvkpHplB/46fIhkNkn8GR5iv8BbcyNpGgThS INeUmiIhKvt0pslDYTd0NYsn56Y4uJFn7CW/EInUNtCBE5T3LceaHqpKDpDSkQLncAY1II M6UgVtLDLJY0GCjiP2ex5tqauIss6Axh3MMHZu0hzWdE1h0IiWRTqEwp+75RZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FC56vmbd; dmarc=pass (policy=none) header.from=gmail.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: -7.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FC56vmbd; dmarc=pass (policy=none) header.from=gmail.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: E4AC01C3D5 X-Spam-Score: -7.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: tjqZCRt35L1V Max Nikulin writes: > On 04/05/2022 16:56, Ihor Radchenko wrote: >> Max Nikulin writes: >> >> 1 unexpected results: >> FAILED test-org-clock/clocktable/ranges > > Resetting timezone to UTC should be fixed in timestamps generated by a > testing helper function. I was disappointed that `mapcar' can not be > used with multiple lists, but I have found an old function created > namely for zeroing nils in timestamps. FYI, there is cl-mapcar, but your solution here is also fine. > I have created one more patch with tests quite close to the case caused > this series. Thanks! LGTM. All the tests are passing now on my side. I'll postpone merging to next week to make sure that there are no more comments. Best, Ihor