Panics · P30 Calendar: views and recurrences stay inside jiff's range, the editor refuses edits past it

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 03:54:07 -04:00
1 parent a284c71e92
commit 8a0344d2c4
11 files changed
+238 -82

No files matched your search

+3
View File
@@ -73,6 +73,9 @@ impl Event {
When::AllDay { first, last } => (first, last),
When::Timed { start, end } => {
let first = start.to_zoned(zone.clone()).date();
if end <= start {
return (first, first);
}
let before_end = end - SignedDuration::from_nanos(1);
(first, before_end.to_zoned(zone.clone()).date().max(first))
}