Skip to content

Commit 5ec455d

Browse files
committed
Fix deactivation date
1 parent 1ac0aed commit 5ec455d

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)