@forcecalendar/core 2.1.34 → 2.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -497,7 +497,7 @@ export class DateUtils {
|
|
|
497
497
|
const julOffset = DateUtils.getTimezoneOffset(jul, timeZone);
|
|
498
498
|
const currentOffset = DateUtils.getTimezoneOffset(date, timeZone);
|
|
499
499
|
|
|
500
|
-
return Math.
|
|
500
|
+
return Math.min(janOffset, julOffset) === currentOffset;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
/**
|
package/core/ics/ICSParser.js
CHANGED
|
@@ -232,7 +232,7 @@ export class ICSParser {
|
|
|
232
232
|
for (const reminder of event.reminders) {
|
|
233
233
|
lines.push('BEGIN:VALARM');
|
|
234
234
|
lines.push('ACTION:DISPLAY');
|
|
235
|
-
lines.push(`TRIGGER:-PT${reminder.
|
|
235
|
+
lines.push(`TRIGGER:-PT${reminder.minutesBefore || 15}M`);
|
|
236
236
|
lines.push(`DESCRIPTION:${event.title || 'Reminder'}`);
|
|
237
237
|
lines.push('END:VALARM');
|
|
238
238
|
}
|