MOBILE-3909 calendar: Remove decimals from migrated reminders

main
Dani Palou 2022-02-01 09:40:42 +01:00
parent 85eaeb44fe
commit 29a688d3f8
1 changed files with 2 additions and 1 deletions

View File

@ -248,7 +248,8 @@ export const CALENDAR_SITE_SCHEMA: CoreSiteSchema = {
return;
} else {
record.time = events[record.eventid].timestart - record.time;
// Remove seconds from the old reminder, it could include seconds by mistake.
record.time = events[record.eventid].timestart - Math.floor(record.time / 60) * 60;
}
return db.insertRecord(REMINDERS_TABLE, record);