[openstreetmap/openstreetmap-website] Source of translations of future dates (Issue #5769)
Minh Nguyễn
notifications at github.com
Thu May 29 22:29:07 UTC 2025
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/2920723208 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250529/45b20eea/attachment.htm>
More information about the rails-dev
mailing list