[openstreetmap/openstreetmap-website] Improve dates in heatmap tooltips (PR #6017)
Tom Hughes
notifications at github.com
Fri May 16 16:47:29 UTC 2025
This uses a custom date format to drop the year from the heatmap tooltips, which doesn't really seem necessary when it only covers a single year - certainly GitHub doesn't show a year.
It also suppresses the leading zero from the day number, so overall "04 January, 2025" becomes "January 4" which seems nicer to me.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6017
-- Commit Summary --
* Improve dates in heatmap tooltips
-- File Changes --
M app/assets/javascripts/heatmap.js (2)
M config/locales/en.yml (3)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6017.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6017.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6017
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6017 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250516/95837e45/attachment.htm>
More information about the rails-dev
mailing list