JMAP for Calendars implementation (part 2)

This commit is contained in:
mdecimus
2025-10-07 19:06:49 +02:00
parent b7df05dd3b
commit 2fb59edaa7
22 changed files with 1809 additions and 330 deletions

View File

@@ -386,14 +386,6 @@ impl Tokenizer<'_> {
impl TimeRange {
pub fn is_in_range(&self, match_overlap: bool, start: i64, end: i64) -> bool {
/*let c = println!(
"is_in_range ({match_overlap}): {} to {}, resource from {} to {}, result: {}",
chrono::DateTime::from_timestamp(self.start, 0).unwrap(),
chrono::DateTime::from_timestamp(self.end, 0).unwrap(),
chrono::DateTime::from_timestamp(start, 0).unwrap(),
chrono::DateTime::from_timestamp(end, 0).unwrap(),
result
);*/
if !match_overlap {
// RFC4791#9.9: (start < DTEND AND end > DTSTART)
self.start < end && self.end > start