[O] Use hour + minute instead of Date when storing alarm time

This commit is contained in:
Hykilpikonna
2021-01-17 14:24:26 -05:00
parent 3cc0672d26
commit ce9cf95e47
3 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class TestingViewController: UIViewController {
//Sends a test notification
@IBAction func sendNotification(_ sender: Any) {
let alarm = Alarm(enabled: true, alarmTime: Date(), text: "Good morning!", wakeMethod: WVM(name: "walking", desc: "Walk"))
let alarm = Alarm(enabled: true, hour: 7, minute: 20, text: "Good morning!", wakeMethod: WVM(name: "walking", desc: "Walk"))
let content = UNMutableNotificationContent()