Skip to content

Commit c84f77c

Browse files
Merge pull request #38 from StreetSupport/feature/3017-create-location-specific-content-management-system
3017 - Fix deactivation date
2 parents b9d9114 + 5ec455d commit c84f77c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jobs/swepActivationJob.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export function startSwepActivationJob() {
5656
if (swep.SwepActiveUntil) {
5757
const activeUntilDate = new Date(swep.SwepActiveUntil);
5858
activeUntilDate.setUTCHours(0, 0, 0, 0); // Use UTC for consistent comparison
59+
activeUntilDate.setDate(activeUntilDate.getDate() + 1); // Add 1 day to active until date
5960

6061
// If today equals or is after the activeUntil date and banner is active
6162
if (activeUntilDate.getTime() === today.getTime() && swep.IsActive) {

0 commit comments

Comments
 (0)