From: Anton Khorev Date: Sat, 15 Mar 2025 18:09:55 +0000 (+0300) Subject: Fix heatmap month titles in Western Hemisphere X-Git-Tag: live~3^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/efc65b86a23032e7867314082f80e1da3654b51a?hp=-c Fix heatmap month titles in Western Hemisphere --- efc65b86a23032e7867314082f80e1da3654b51a diff --git a/app/assets/javascripts/heatmap.js b/app/assets/javascripts/heatmap.js index 058f71cfe..c557f96e3 100644 --- a/app/assets/javascripts/heatmap.js +++ b/app/assets/javascripts/heatmap.js @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", () => { type: "month", gutter: 4, label: { - text: (timestamp) => monthNames[new Date(timestamp).getMonth() + 1], + text: (timestamp) => monthNames[new Date(timestamp).getUTCMonth() + 1], position: "top", textAlign: "middle" },