Fixing bug that prevented the middleware from working with Thunderbird on Microschrott Windoof
Jenkins Production Deployment
Jenkins Production Deployment
- FUCK FILE ENCODINGS - FUCK BILL GATES
This commit is contained in:
@@ -48,7 +48,7 @@ export const parseIcal = function (icalContents: string): iCalFile {
|
||||
header = headerMatch[0];
|
||||
}
|
||||
|
||||
header = header.substr(0, header.lastIndexOf('\n'));
|
||||
header = header.substr(0, header.lastIndexOf('\n') + 1);
|
||||
|
||||
let events: iCalEvent[] = [];
|
||||
let match: any;
|
||||
@@ -106,14 +106,14 @@ export const getDuration = function(event: string): number {
|
||||
let endDt = new Date(endDtYear, endDtMonth - 1, endDtDay, endDtHour, endDtMinute);
|
||||
|
||||
return endDt.getHours() - startDt.getHours();
|
||||
}
|
||||
};
|
||||
|
||||
export const serializeIcal = function (ical: iCalFile): string {
|
||||
let resString = ical.head;
|
||||
ical.body.forEach((event) => {
|
||||
resString += event.content + '\n';
|
||||
});
|
||||
resString += 'END:VCALENDAR';
|
||||
resString += 'END:VCALENDAR\n';
|
||||
|
||||
return resString;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user