Browse Source

Indentation.

pull/113/head
Abhishek 2 years ago
parent
commit
12fb2d8885
  1. 2
      Clocker/Events and Reminders/CalendarHandler.swift
  2. 2
      Clocker/Panel/UI/TimezoneDataSource.swift

2
Clocker/Events and Reminders/CalendarHandler.swift

@ -124,7 +124,7 @@ extension EventCenter {
let relevantEvents = filteredEvents[autoupdatingCalendar.startOfDay(for: Date())] ?? []
let filteredEvents = relevantEvents.filter {
$0.event.isAllDay == false && $0.event.endDate.timeIntervalSinceNow > 0 && $0.event.startDate.timeIntervalSinceNow > -300
$0.event.isAllDay == false && $0.event.endDate.timeIntervalSinceNow > 0 && $0.event.startDate.timeIntervalSinceNow > -300
}
if filteredEvents.count == 1 { return filteredEvents.first }

2
Clocker/Panel/UI/TimezoneDataSource.swift

@ -220,7 +220,7 @@ extension TimezoneDataSource: PanelTableViewDelegate {
if offSet == 0.0 {
return "\(localizedName)"
} else {
let offSetSign = offSet > 0 ? "+" : CLEmptyString
let offSetSign = offSet > 0 ? "+" : CLEmptyString
let offsetString = "UTC\(offSetSign)\(offSet)"
return "\(localizedName) (\(offsetString))"
}

Loading…
Cancel
Save