Fix: missing highlights due to not interpreting timezones right

This commit is contained in:
Jorge Manrubia
2025-09-23 13:38:25 +02:00
parent b2f4038ea1
commit bfe0f5a68b
6 changed files with 1171 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ module User::Highlights
private
def highlights_starts_at(date = Time.current)
date = date - 1.day if date.sunday?
date = date.in_time_zone(timezone)
date.beginning_of_week(:sunday)
end
end