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