Skip to content

Commit 453171c

Browse files
committed
no date, just time
1 parent 4c9518b commit 453171c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

BeeSwift/GoalViewController.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,9 @@ class GoalViewController: UIViewController, UIScrollViewDelegate, DatapointTabl
359359
}
360360

361361
private func refreshPullDown() {
362-
let dateFormatter = ISO8601DateFormatter()
363-
dateFormatter.formatOptions = [.withFullDate, .withFullTime]
364-
365-
let lastSynced = goal.lastSyncedWithHealthKit.map { dateFormatter.string(from: $0) } ?? "not yet"
362+
let lastSynced = goal.lastSyncedWithHealthKit?
363+
.formatted(date: .omitted, time: .shortened)
364+
?? "not yet"
366365

367366
if self.goal.isLinkedToHealthKit {
368367
pullToRefreshView.message = "Pull down to synchronize with Apple Health"

0 commit comments

Comments
 (0)