Bump to calcard 0.2
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
use ahash::AHashMap;
|
||||
use calcard::{
|
||||
common::PartialDateTime,
|
||||
common::{IanaString, PartialDateTime},
|
||||
icalendar::{ICalendar, ICalendarProperty, ICalendarValue},
|
||||
};
|
||||
use groupware::scheduling::{
|
||||
@@ -422,11 +422,11 @@ fn normalize_ical(mut ical: ICalendar, map: &mut AHashMap<PartialDateTime, usize
|
||||
.filter(|(comp_id, _)| {
|
||||
ical.components[0]
|
||||
.component_ids
|
||||
.contains(&(*comp_id as u16))
|
||||
.contains(&(*comp_id as u32))
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
comps.sort_unstable_by_key(|(_, comp)| *comp);
|
||||
ical.components[0].component_ids = comps.iter().map(|(comp_id, _)| *comp_id as u16).collect();
|
||||
ical.components[0].component_ids = comps.iter().map(|(comp_id, _)| *comp_id as u32).collect();
|
||||
|
||||
for comp in &mut ical.components {
|
||||
for entry in &mut comp.entries {
|
||||
|
||||
@@ -732,7 +732,7 @@ BEGIN:VFREEBUSY
|
||||
DTSTART:20060104T140000Z
|
||||
DTEND:20060105T220000Z
|
||||
FREEBUSY;FBTYPE=BUSY-TENTATIVE:20060104T150000Z/20060104T160000Z
|
||||
FREEBUSY;FBTYPE=BUSY:20060104T190000Z/20060104T200000Z;20060105T170000Z/20060105T180000Z
|
||||
FREEBUSY;FBTYPE=BUSY:20060104T190000Z/20060104T200000Z,20060105T170000Z/20060105T180000Z
|
||||
FREEBUSY;FBTYPE=BUSY-UNAVAILABLE:20060105T100000Z/20060105T120000Z
|
||||
END:VFREEBUSY
|
||||
END:VCALENDAR
|
||||
@@ -753,8 +753,8 @@ DTSTART:20060101T000000Z
|
||||
DTEND:20060104T140000Z
|
||||
DTSTAMP:20250505T105255Z
|
||||
FREEBUSY;FBTYPE=BUSY-TENTATIVE:20060102T100000Z/20060102T120000Z
|
||||
FREEBUSY;FBTYPE=BUSY:20060102T150000Z/20060102T160000Z;20060102T170000Z/20060102T180000Z;
|
||||
20060103T100000Z/20060103T120000Z;20060103T170000Z/20060103T180000Z;20060104T100000Z/20060104T120000Z
|
||||
FREEBUSY;FBTYPE=BUSY:20060102T150000Z/20060102T160000Z,20060102T170000Z/20060102T180000Z,
|
||||
20060103T100000Z/20060103T120000Z,20060103T170000Z/20060103T180000Z,20060104T100000Z/20060104T120000Z
|
||||
END:VFREEBUSY
|
||||
END:VCALENDAR
|
||||
"#;
|
||||
|
||||
@@ -316,7 +316,7 @@ CATEGORIES:Technology,B2B,Solutions,Services
|
||||
NOTE:Business hours: Mon-Fri 9:00-17:30 GMT. Closed on UK bank holidays. VAT
|
||||
Reg: GB123456789
|
||||
TZ:Z
|
||||
GEO:51.5074\;-0.1278
|
||||
GEO:51.5074;-0.1278
|
||||
KEY;TYPE=PGP:https://pgp.example.com/pks/lookup?op=get&search=info@acme-solu
|
||||
tions.example
|
||||
UID:urn:uuid:a9e95948-7b1c-46e8-bd85-c729a9e910f2
|
||||
|
||||
Reference in New Issue
Block a user