@@ -344,7 +344,7 @@ describe('Schedule PUT API (Reactivate)', () => {
344344 expect ( nextRunAt ) . toBeGreaterThan ( beforeCall )
345345 expect ( nextRunAt ) . toBeLessThanOrEqual ( afterCall + 5 * 60 * 1000 + 1000 )
346346 // Should align with 5-minute intervals (minute divisible by 5)
347- expect ( new Date ( nextRunAt ) . getMinutes ( ) % 5 ) . toBe ( 0 )
347+ expect ( new Date ( nextRunAt ) . getUTCMinutes ( ) % 5 ) . toBe ( 0 )
348348 } )
349349
350350 it ( 'calculates nextRunAt from daily cron expression' , async ( ) => {
@@ -572,7 +572,7 @@ describe('Schedule PUT API (Reactivate)', () => {
572572 expect ( nextRunAt . getTime ( ) ) . toBeGreaterThan ( beforeCall )
573573 expect ( nextRunAt . getTime ( ) ) . toBeLessThanOrEqual ( beforeCall + 10 * 60 * 1000 + 1000 )
574574 // Should align with 10-minute intervals
575- expect ( nextRunAt . getMinutes ( ) % 10 ) . toBe ( 0 )
575+ expect ( nextRunAt . getUTCMinutes ( ) % 10 ) . toBe ( 0 )
576576 } )
577577
578578 it ( 'handles hourly schedules with timezone correctly' , async ( ) => {
@@ -598,8 +598,8 @@ describe('Schedule PUT API (Reactivate)', () => {
598598
599599 // Should be a future date at minute 15
600600 expect ( nextRunAt . getTime ( ) ) . toBeGreaterThan ( beforeCall )
601- expect ( nextRunAt . getMinutes ( ) ) . toBe ( 15 )
602- expect ( nextRunAt . getSeconds ( ) ) . toBe ( 0 )
601+ expect ( nextRunAt . getUTCMinutes ( ) ) . toBe ( 15 )
602+ expect ( nextRunAt . getUTCSeconds ( ) ) . toBe ( 0 )
603603 } )
604604
605605 it ( 'handles custom cron expressions with complex patterns and timezone' , async ( ) => {
0 commit comments