From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [IPv6:2001:41d0:203:375::bb]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6D3EA1F642 for ; Sun, 5 Feb 2023 20:10:52 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=kyleam.com header.i=@kyleam.com header.a=rsa-sha256 header.s=key1 header.b=YMXUhyz1; dkim-atps=neutral X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1675627848; 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: in-reply-to:in-reply-to:references:references; bh=z3IuXPYV827NMBtR6btk6T846gl7xEo2gUr+UGfR4As=; b=YMXUhyz1gKbKWPu4Vvv6mkbBAN9MgIm1o24jSUytm9eK2TawfAgMmqPNa7Yp6X903aQxVO rUleqpOQp/1Fa8d36RYw/879FmMAPQOS+JX0R8IsVqCagx33gL1LrD3s056BhSaruvEWdl mFR7TtjTewpQ7eUMBlpie3mgsO7PfJEqGxNBPRbDUePzuEkG7db+BPyZHp2wVtkCAPHEzY BIoZo+uGtqLhX5NoH9xGRWgUcHhLEjSPPFiF22ObG25wx5RvoVAm2aXfMDeZFwXL9RDkG4 tZCbvG7qQaK56RVsK+Enz/sslbZ4h7zvKqc/vZsrI/jiTENDxrRNAu3XZkVpzQ== From: Kyle Meyer To: Ihor Radchenko Cc: Eric Wong , meta@public-inbox.org, Bastien Guerry Subject: [PATCH] www: display Received: timestamp for dumped topics In-Reply-To: <87o7q7di5i.fsf@localhost> References: <87edr5gx63.fsf@kyleam.com> <20230204204110.M179231@dcvr> <87o7q7di5i.fsf@localhost> Date: Sun, 05 Feb 2023 15:10:37 -0500 Message-ID: <87y1pb27r6.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT List-Id: Ihor Radchenko writes: > Eric Wong writes: [...] >> Does this untested patch fix it? > > I am looking at https://list.orgmode.org/ and the thread still displays > the future date "2023-10-29 1:04 UTC" as the last update time. Though > ordering suggests that the future time was ignored when building recent > thread list. The "it" that I reported is the sorting, so as far as I can see it's fixed. With the "last update time", I suppose you're talking about the second line below: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda 2023-10-29 1:04 UTC (110+ messages) ` [POLL] Proposed syntax for [...] I don't care too much one way or the other, but it makes sense to me for that to match the value that's actually used to sort the messages. Eric, what about something like this? -- >8 -- Subject: [PATCH] www: display Received: timestamp for dumped topics As a follow-up to 0f19ca7e3ca6fc56 (www: sort all /$INBOX/ topics by Received: timestamp, 2023-02-04), display the Received: timestamp rather than Date: timestamp when dumping the topic so that the displayed date aligns with the sorting. Reported-by: Ihor Radchenko Link: https://public-inbox.org/meta/87o7q7di5i.fsf@localhost/ --- lib/PublicInbox/View.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index e5f748f7..384d7894 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -1093,7 +1093,7 @@ sub dump_topics { my $href = mid_href($mid); my $prev_subj = [ split(/ /, $top_subj) ]; $top_subj = ascii_html($top_subj); - $ds = fmt_ts($ds); + $ts = fmt_ts($ts); # $n isn't the total number of posts on the topic, # just the number of posts in the current results window @@ -1107,7 +1107,7 @@ sub dump_topics { } my $s = "$top_subj\n" . - " $ds UTC $n\n"; + " $ts UTC $n\n"; while (@extra) { my $level = shift @extra; my $subj = shift @extra; # already normalized base-commit: 0f19ca7e3ca6fc568a8713c5ececdb4d9fa577e6 -- 2.39.1