File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
app/src/main/java/at/techbee/jtx/database Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ import java.net.URLDecoder
5353import java.text.ParseException
5454import java.time.DayOfWeek
5555import java.time.Instant
56- import java.time.LocalDate
5756import java.time.LocalDateTime
5857import java.time.LocalTime
5958import java.time.ZoneId
@@ -700,7 +699,7 @@ data class ICalObject(
700699 if (due == null )
701700 return null
702701
703- val localNow = if (dueTimezone != TZ_ALLDAY ) ZonedDateTime .now() else LocalDate .now().atStartOfDay ()
702+ val localNow = ZonedDateTime .now()
704703 val localDue = ZonedDateTime .ofInstant(Instant .ofEpochMilli(due), ZoneId .of(" UTC" )).withZoneSameInstant(requireTzId(dueTimezone))
705704
706705 return ChronoUnit .MINUTES .between(localNow, localDue) < 0L
You can’t perform that action at this time.
0 commit comments