summaryrefslogtreecommitdiffstats
path: root/Solverv/Models
diff options
context:
space:
mode:
Diffstat (limited to 'Solverv/Models')
-rw-r--r--Solverv/Models/SolsticeEvent.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/Solverv/Models/SolsticeEvent.swift b/Solverv/Models/SolsticeEvent.swift
index 46c14ac..d8c4a7b 100644
--- a/Solverv/Models/SolsticeEvent.swift
+++ b/Solverv/Models/SolsticeEvent.swift
@@ -16,7 +16,7 @@ struct SolsticeEvent: Identifiable, Codable {
/// Convert UTC date to user's local timezone
func localDateTime() -> Date {
let utcCalendar = Calendar(identifier: .gregorian)
- var utcComponents = utcCalendar.dateComponents([.year, .month, .day, .hour, .minute, .second], from: date)
+ let utcComponents = utcCalendar.dateComponents([.year, .month, .day, .hour, .minute, .second], from: date)
let timeZone = TimeZone.current
let offset = timeZone.secondsFromGMT(for: date)