@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.max(janOffset, julOffset) === currentOffset;
500
+ return Math.min(janOffset, julOffset) === currentOffset;
501
501
  }
502
502
 
503
503
  /**
@@ -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.minutes || 15}M`);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forcecalendar/core",
3
- "version": "2.1.34",
3
+ "version": "2.1.36",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "A modern, lightweight, framework-agnostic calendar engine optimized for Salesforce",