Panics · P30 Calendar: views and recurrences stay inside jiff's range, the editor refuses edits past it
This commit is contained in:
1 parent
a284c71e92
commit
8a0344d2c4
11 files changed
+238
-82
No files matched your search
@@ -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))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user