Skip to content

Commit 1ef0765

Browse files
fixed timing on today controller
1 parent e46ed8a commit 1ef0765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

try! Today/TodayController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ class TodayController: UIViewController, NCWidgetProviding {
4848

4949
private var firstSessionBlock: SessionBlock? {
5050
let sessionBlocks = SessionBlock.all
51-
return sessionBlocks.sorted { $0.startTime > $1.startTime }.first
51+
return sessionBlocks.sorted { $0.startTime < $1.startTime }.first
5252
}
5353

5454
private var lastSessionBlock: SessionBlock? {
5555
let sessionBlocks = SessionBlock.all
56-
return sessionBlocks.sorted { $0.startTime < $1.startTime }.first
56+
return sessionBlocks.sorted { $0.startTime > $1.startTime }.first
5757
}
5858

5959
lazy var sessionDateFormatter: DateFormatter = {

0 commit comments

Comments
 (0)