"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: gotwebd: render all datetimes in a time tag
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Thu, 5 Oct 2023 12:17:54 +0200

Download raw body.

Thread
On Thu, Oct 05, 2023 at 11:49:00AM +0200, Omar Polo wrote:
> I'm not aware of any browser that makes content of time more
> user-friendly using the datetime attribute, but it's nevertheless the
> right tag to mark up times and I think we should use it.
> 
> gotweb_render_age() un-learns how to do multiple formats and only
> renders an age string (i.e. "3 weeks ago").  I suggest to run
> got diff -w gotweb.c after applying the diff to see that it only
> removes one case of the switch, leaving the TM_DIFF body as-is.
> 
> The rest of the diff is a boring s/gotweb_render_age/datetime in
> pages.tmpl.
> 
> fwiw I have this applied on my instance.

Makes sense to me, ok.