Commit 99ef17e1 authored by Ricki Hirner's avatar Ricki Hirner

Reminders: Use seconds, too

parent 929555e0
Pipeline #11866931 passed with stage
in 2 minutes and 3 seconds
buildscript {
ext.kotlin_version = '1.1.4-2'
ext.kotlin_version = '1.1.4-3'
repositories {
jcenter()
......
......@@ -93,7 +93,7 @@ open class iCalendar {
var minutes = 0
alarm.trigger?.duration?.let { duration ->
// negative value in TRIGGER means positive value in Reminders.MINUTES and vice versa
minutes = -(((duration.weeks * 7 + duration.days) * 24 + duration.hours) * 60 + duration.minutes)
minutes = -(((duration.weeks * 7 + duration.days) * 24 + duration.hours) * 60 + duration.minutes + duration.seconds/60)
if (duration.isNegative)
minutes *= -1
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment