Browse Source

Trim the starts part.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
77d41263c4
  1. 2
      Clocker/Events and Reminders/CalendarHandler.swift

2
Clocker/Events and Reminders/CalendarHandler.swift

@ -498,7 +498,7 @@ struct EventInfo {
let withoutAgo = withoutAn.replacingOccurrences(of: "ago", with: CLEmptyString) let withoutAgo = withoutAn.replacingOccurrences(of: "ago", with: CLEmptyString)
// If the user has not turned on seconds granularity for one of the timezones, // If the user has not turned on seconds granularity for one of the timezones,
// we return "in 12 seconds" which looks weird. // we return "in 12 seconds" which looks weird.
return withoutAgo.contains("seconds") ? "starts in <1m" : "in \(withoutAgo.lowercased())" return withoutAgo.contains("seconds") ? "in <1m" : "in \(withoutAgo.lowercased())"
} else if event.startDate.isTomorrow { } else if event.startDate.isTomorrow {
let hoursUntil = event.startDate.hoursUntil let hoursUntil = event.startDate.hoursUntil
return "in \(hoursUntil)h" return "in \(hoursUntil)h"

Loading…
Cancel
Save