We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399aa87 commit bbf50faCopy full SHA for bbf50fa
apps/schedclock/lib.js
@@ -66,14 +66,14 @@ exports.syncAlarms = function() {
66
67
const schedTime = (item.hour * 3600000) + (item.minute * 60000);
68
const today = time.getDate();
69
- const tomorrow = today + 1;
+ const yesterday = today - 1;
70
71
// Create the new alarm object and save it using a unique ID.
72
Sched.setAlarm(`${APP_ID}.${index}`, {
73
t: schedTime, // time in milliseconds since midnight
74
on: true,
75
rp: true,
76
- last: (schedTime > currentTime) ? today : tomorrow,
+ last: (schedTime > currentTime) ? yesterday : today,
77
dow: item.dow,
78
hidden: true,
79
appid: APP_ID,
0 commit comments