From afb61f662291f5ee8f63716824cd0e3b56abeb47 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 27 May 2026 13:28:40 -0400 Subject: [PATCH] [calendar] Fix timezone bug --- vrobbler/apps/scrobbles/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index cd1cf25..ccaacc6 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -1366,7 +1366,8 @@ class ScrobbleCalendarView(LoginRequiredMixin, TemplateView): day_map = {d: [] for d in range(1, total_days + 1)} for scrobble in scrobbles: - day_map[scrobble.timestamp.day].append(scrobble) + local_ts = timezone.localtime(scrobble.timestamp) + day_map[local_ts.day].append(scrobble) missing_uuids = [s for s in scrobbles if not s.uuid] if missing_uuids: