summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Solsnu.Widget/Utilities/SunTimes.swift2
-rw-r--r--Solverv/Models/SolsticeEvent.swift2
-rw-r--r--Solverv/Utilities/SunTimes.swift2
3 files changed, 3 insertions, 3 deletions
diff --git a/Solsnu.Widget/Utilities/SunTimes.swift b/Solsnu.Widget/Utilities/SunTimes.swift
index d3ca7fc..8c7132e 100644
--- a/Solsnu.Widget/Utilities/SunTimes.swift
+++ b/Solsnu.Widget/Utilities/SunTimes.swift
@@ -74,7 +74,7 @@ class SunTimes {
// Step 9: Create date components, handling day boundary crossing
let currentCalendar = Calendar.current
- var baseComponents = currentCalendar.dateComponents([.year, .month, .day], from: date)
+ let baseComponents = currentCalendar.dateComponents([.year, .month, .day], from: date)
// Sunrise
var sunriseComp = baseComponents
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)
diff --git a/Solverv/Utilities/SunTimes.swift b/Solverv/Utilities/SunTimes.swift
index f8906ce..3b8f049 100644
--- a/Solverv/Utilities/SunTimes.swift
+++ b/Solverv/Utilities/SunTimes.swift
@@ -74,7 +74,7 @@ class SunTimes {
// Step 9: Create date components, handling day boundary crossing
let calendar2 = Calendar.current
- var baseComponents = calendar2.dateComponents([.year, .month, .day], from: date)
+ let baseComponents = calendar2.dateComponents([.year, .month, .day], from: date)
// Sunrise
var sunriseComp = baseComponents