@pitcher/canvas-ui 2026.1.9-205914-beta → 2026.1.9-223804-beta
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.
- package/canvas-ui.js +3 -7
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
package/canvas-ui.js
CHANGED
|
@@ -183575,13 +183575,9 @@ function getEventColor(sfEvent) {
|
|
|
183575
183575
|
if (isSubmitted) return SfEventColors.SUBMITTED;
|
|
183576
183576
|
else if (sfEvent.IsAllDayEvent) {
|
|
183577
183577
|
const endDate = new Date(sfEvent.EndDateTime);
|
|
183578
|
-
const
|
|
183579
|
-
const
|
|
183580
|
-
|
|
183581
|
-
endDate.getUTCMonth(),
|
|
183582
|
-
endDate.getUTCDate()
|
|
183583
|
-
);
|
|
183584
|
-
return nowUTC >= endDateUTC ? SfEventColors.PAST : SfEventColors.PLANNED;
|
|
183578
|
+
const todayStart = startOfDay(now);
|
|
183579
|
+
const endDayStart = startOfDay(endDate);
|
|
183580
|
+
return isAfter$1(todayStart, endDayStart) ? SfEventColors.PAST : SfEventColors.PLANNED;
|
|
183585
183581
|
} else if (isAfter$1(now, new Date(sfEvent.EndDateTime))) return SfEventColors.PAST;
|
|
183586
183582
|
else return SfEventColors.PLANNED;
|
|
183587
183583
|
}
|