do not reset secs and millis at checking if event changed

This commit is contained in:
tibbi 2022-05-06 23:36:09 +02:00
parent 585b51b0eb
commit aac1aa7c32

View File

@ -257,8 +257,8 @@ class EventActivity : SimpleActivity() {
(DateTimeZone.forID(mEvent.getTimeZoneString()).getOffset(millis) - DateTimeZone.forID(original).getOffset(millis)) / 1000L
}
val newStartTS = mEventStartDateTime.withSecondOfMinute(0).withMillisOfSecond(0).seconds() - offset
val newEndTS = mEventEndDateTime.withSecondOfMinute(0).withMillisOfSecond(0).seconds() - offset
val newStartTS = mEventStartDateTime.seconds() - offset
val newEndTS = mEventEndDateTime.seconds() - offset
return Pair(newStartTS, newEndTS)
}