From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id IHBeIGBpXmY+SQAAqHPOHw:P1 (envelope-from ) for ; Tue, 04 Jun 2024 03:09:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IHBeIGBpXmY+SQAAqHPOHw (envelope-from ) for ; Tue, 04 Jun 2024 03:09:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=Q9Y0psEv; dmarc=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=1717463392; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SMUSNLyKAr4aOeoZfZmhwGGE0jD2SduPtua0zTRnr5I=; b=kCPzXHumZp7+XBprXxKbRWIr44svwUzyTGgix3OtlYHESfpOoXrxlCTqGp8J2fMSgPkHTu kuOAGcRAVQFSXQWfGLO1bF+vLMaD1SEd1LwTcncjygqHCxf9kiMuG58tN9OXefnbWyH8vs HOnRrqDw8PXmmk0CmTnPESLA/gUYYFcMeRykbvno81X7eMmD5MN9+9qWCIkvUS9QTN9lbL YSc8VCw61zq1C0slVEy0tkAGQvoisULIkKUBYGb9xEgiV8vsNP4+to9iEjjRiuavtymHEB NpcYtlgJ4p+ThUPBrPtV5BmFBecmOiq5R7B42wl0q28G/ciY3WRZPVAKA1X0hg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717463392; a=rsa-sha256; cv=none; b=ul7ciATk1KID6J+syEx3tiDF2EEq+owCt6EoLNUmwb3/mldTllxCv/dMNXBPw0S579I3Xw hT3WHmlbWHD1D2AZZBW2N/8ryokUgplzMZQNSzUMQc29vTZ92OdEjbHV7A+rvpV9gSAfB6 s7I7HcZlcSxpbMEwai3pgDRFoo9yubTfT76JRWx5Jh+wL3NaP9mlrmPdCVjNd7wJTuVIm+ QHFfJ8sUyURPEhFPxRmd5p3VRvjhgpQQMb3dVTvEYv0qPRyPmQpRj5nFsxihfOA7H2Ilsh kOPEarPdvX74lB004yznbE0pEA8oQdRUTBm+owzZiWamigttily3AZxfUPYdcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=Q9Y0psEv; dmarc=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" 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 F0236F9B4 for ; Tue, 04 Jun 2024 03:09:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEIfR-0004e8-Qi; Mon, 03 Jun 2024 21:08:49 -0400 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 1sEIfO-0004du-TZ for emacs-orgmode@gnu.org; Mon, 03 Jun 2024 21:08:46 -0400 Received: from out-181.mta1.migadu.com ([2001:41d0:203:375::b5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sEIfM-0002uo-VP for emacs-orgmode@gnu.org; Mon, 03 Jun 2024 21:08:46 -0400 X-Envelope-To: yantar92@posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1717463319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=SMUSNLyKAr4aOeoZfZmhwGGE0jD2SduPtua0zTRnr5I=; b=Q9Y0psEvAyOpRM7KvJt1ndJqysj94Jy6wid/1I8pJbcAVSmU8o48M9TfU8wqW+UO8m74Dt wGX38rudodtjMTGhaEizAnpufNmNMQd4L/g9exDvR/bwGLmsHPpJsbHFFD1RCpB9/XUFAW wW+ICajJ5cP8msSZzvEf6RjcjNDrt8GytrsD6wTlGYmJtOH8HPO+i9+LdVcMBk78Ak+3jN afPd2OZpaO/PHwoI6qhc370iH3JbMCRkR/cF+t1SyqYWUg/QOqq2hk706utyOrrnzjPkYM aPYv9RHTHO/iya81k6gQNRbuYLiUNEScaP+Y3DBxG27Ett83tf3ZX/n/aIxrGw== X-Envelope-To: emacs-orgmode@gnu.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kyle Meyer To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org-test: Fix zone-dependent miscalculation of days of week Date: Mon, 03 Jun 2024 21:08:32 -0400 Message-ID: <877cf57bvz.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:41d0:203:375::b5; envelope-from=kyle@kyleam.com; helo=out-181.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.04 X-Spam-Score: -3.04 X-Migadu-Queue-Id: F0236F9B4 X-Migadu-Scanner: mx11.migadu.com X-TUID: qCGpJK1EEflM Ihor Radchenko writes: > I suspect that the failures are because of your timezone. Yes, that matches my conclusion too and was what I was trying to convey in the commit message. > If my guess is right, there will always be some timezone where a given > number seconds from epoch is a different day... > I am not sure how to address this problem. How about my patch? Notice that format-time-string is invoked with ZONE set to t so that TIME is always taken as UTC.