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: