Ihor Radchenko writes:

> Eric Wong <[email protected]> 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 <[email protected]>
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 = "<a\nhref=\"$href/T/$anchor\">$top_subj</a>\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


Reply via email to