[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
@@ -17,7 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate
{
// Init default settings
localStorage.register(defaults: [
"alarms": JSON.stringify([Alarm(enabled: true, alarmTime: Date(), text: "Wake up lol", wakeMethod: wvms[0])])!
"alarms": JSON.stringify([Alarm(enabled: true, hour: 7, minute: 20, text: "Wake up lol", wakeMethod: wvms[0])])!
])
// Start alarm activator