From 9a072e3e768249a82b41523164afeaf8666e4301 Mon Sep 17 00:00:00 2001 From: Natalie <78037386+CuriousMagpie@users.noreply.github.com> Date: Thu, 19 Jun 2025 19:05:38 -0400 Subject: [PATCH] chore: update grand gala start dates (#15435) * chore: update grand gala start date * chore: update test cases for new gala dates * chore(sales): adjust promo dates --------- Co-authored-by: Kalista Payne --- test/content/schedule.test.js | 12 ++++++------ website/common/script/content/constants/events.js | 8 ++++---- website/common/script/content/constants/schedule.js | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/content/schedule.test.js b/test/content/schedule.test.js index ab0caf9b96..94c03be794 100644 --- a/test/content/schedule.test.js +++ b/test/content/schedule.test.js @@ -133,21 +133,21 @@ describe('Content Schedule', () => { }); it('sets the end date for a gala', () => { - const date = new Date('2024-05-20'); + const date = new Date('2024-05-31'); const matchers = getAllScheduleMatchingGroups(date); - expect(matchers.seasonalGear.end).to.eql(moment.utc(`2024-06-21T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate()); + expect(matchers.seasonalGear.end).to.eql(moment.utc(`2024-06-01T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate()); }); it('sets the end date for a winter gala', () => { - const date = new Date('2024-12-22'); + const date = new Date('2025-02-28'); const matchers = getAllScheduleMatchingGroups(date); - expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-21T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate()); + expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-01T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate()); }); it('sets the end date in new year for a winter gala', () => { - const date = new Date('2025-01-04'); + const date = new Date('2025-02-28'); const matchers = getAllScheduleMatchingGroups(date); - expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-21T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate()); + expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-01T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate()); }); it('uses correct date for first hours of the month', () => { diff --git a/website/common/script/content/constants/events.js b/website/common/script/content/constants/events.js index afed1efeb1..09ddf4eb80 100644 --- a/website/common/script/content/constants/events.js +++ b/website/common/script/content/constants/events.js @@ -83,8 +83,8 @@ export const REPEATING_EVENTS = { foodSeason: 'Cake', }, fallGemSale: { - start: new Date('1970-09-17T04:00-04:00'), - end: new Date('1970-09-24T23:59-04:00'), + start: new Date('1970-08-27T04:00-04:00'), + end: new Date('1970-09-03T23:59-04:00'), event: 'fall_extra_gems', gemsPromo, }, @@ -109,8 +109,8 @@ export const REPEATING_EVENTS = { foodSeason: 'Pie', }, giftOneGetOne: { - start: new Date('1970-12-17T04:00-05:00'), - end: new Date('1970-01-09T23:59-05:00'), + start: new Date('1970-12-18T04:00-05:00'), + end: new Date('1970-01-05T23:59-05:00'), promo: 'g1g1', }, }; diff --git a/website/common/script/content/constants/schedule.js b/website/common/script/content/constants/schedule.js index b69d9d1deb..092febc9a7 100644 --- a/website/common/script/content/constants/schedule.js +++ b/website/common/script/content/constants/schedule.js @@ -664,7 +664,7 @@ export const MONTHLY_SCHEDULE = { }, }; -export const GALA_SWITCHOVER_DAY = 21; +export const GALA_SWITCHOVER_DAY = 1; export const GALA_KEYS = [ 'winter', 'spring',