1ec5 left a comment (openstreetmap/openstreetmap-website#5769)

> Or we could leave it as an absolute timestamp and rely on JavaScript to 
> relativize it on the fly.

Another advantage of client-side relative dates is that we can make them update 
dynamically as you’re viewing the page. For example, on this page (and also on 
the wiki if you have the Comments in Local Time gadget installed), the time on 
a recent comment updates live. However, a timestamp younger than a minute or 
older than than a week remains as an absolute date, so that the user doesn’t 
have to do the math in their head.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5769#issuecomment-2920723208
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/issues/5769/2920723...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to