[O] Use hour + minute instead of Date when storing alarm time
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user