Skip to content

Commit

Permalink
Merge pull request #763 from Infomaniak/improve-future-section
Browse files Browse the repository at this point in the history
refactor(DateInterval): Use .distantFuture property
  • Loading branch information
valentinperignon committed May 31, 2023
2 parents 37c3e7a + 50cc387 commit 4106279
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Mail/Utils/DateInterval+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ import Foundation

extension DateInterval {
// We simply want to define the future as an event that happens later
// The value of 100 years is arbitrary
static let future = DateInterval(start: Calendar.current.date(byAdding: .year, value: 100, to: .now)!, duration: 0)
static let future = DateInterval(start: .distantFuture, duration: 0)
}

0 comments on commit 4106279

Please sign in to comment.