From 15873adeb490db77912d76738ec3b4b282fb14a6 Mon Sep 17 00:00:00 2001 From: Klemens Muthmann Date: Tue, 7 May 2024 11:48:46 +0200 Subject: [PATCH] Fix end time for last day of current event. --- RFR-App/RFR/Voucher/Events.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RFR-App/RFR/Voucher/Events.swift b/RFR-App/RFR/Voucher/Events.swift index b385e3e..8db38aa 100644 --- a/RFR-App/RFR/Voucher/Events.swift +++ b/RFR-App/RFR/Voucher/Events.swift @@ -33,8 +33,9 @@ func createEvents() -> [ClosedRange] { end.month = 5 end.day = 31 end.timeZone = TimeZone(abbreviation: "CEST") - end.hour = 0 - end.minute = 0 + end.hour = 23 + end.minute = 59 + end.second = 59 return [Calendar.current.date(from: start)!...Calendar.current.date(from: end)!] }