MOBILE-3909 calendar: Remove decimals from migrated reminders
parent
85eaeb44fe
commit
29a688d3f8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue