Roxen.git / server / etc / modules / Variable.pmod / Schedule.pike

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/Schedule.pike:77:    ({ 1656040303, 1656042300 }),    // 2022-06-24T03:21:43 (Fri) ==> 2022-06-24T03:45:00 (Fri)    ({ 1656040903, 1656042300 }),    // 2022-06-24T03:51:43 (Fri) ==> 2022-07-01T03:45:00 (Fri)    ({ 1656042703, 1656647100 }),    // 2022-06-24T04:11:43 (Fri) ==> 2022-07-01T03:45:00 (Fri)    ({ 1656043903, 1656647100 }),    // 2022-06-24T14:11:43 (Fri) ==> 2022-07-01T03:45:00 (Fri)    ({ 1656079903, 1656647100 }),    }), +  ({ ({ 2, 1, 1, 0, 3, 0 }), // PI-172 adjusted from 02:00 to 03:00 +  // Every day at 03:00. +  // 2022-06-22T14:11:43 (Wed) ==> 2022-06-23T03:00:00 (Thu) +  ({ 1655907103, 1655953200 }), +  // 2022-06-23T14:11:43 (Thu) ==> 2022-06-24T03:00:00 (Fri) +  ({ 1655993503, 1656039600 }), +  // 2022-06-24T02:11:43 (Fri) ==> 2022-06-24T03:00:00 (Fri) +  ({ 1656036703, 1656039600 }), +  // 2022-06-24T03:11:43 (Fri) ==> 2022-06-25T03:00:00 (Sat) +  ({ 1656040303, 1656126000 }), +  // 2022-06-24T03:21:43 (Fri) ==> 2022-06-25T03:00:00 (Sat) +  ({ 1656040903, 1656126000 }), // Borken 2022-06-25T03:15:00 +  // 2022-06-24T03:51:43 (Fri) ==> 2022-06-25T03:00:00 (Sat) +  ({ 1656042703, 1656126000 }), // Borken 2022-06-25T03:45:00 +  // 2022-06-24T04:11:43 (Fri) ==> 2022-06-25T03:00:00 (Sat) +  ({ 1656043903, 1656126000 }), +  // 2022-06-24T14:11:43 (Fri) ==> 2022-06-25T03:00:00 (Sat) +  ({ 1656079903, 1656126000 }), +  }),    }), array(array(int)) test) {    val = test[0];    while(1) {    foreach(test[1..], [int when, int expected]) {    int got = get_next(when);    if (got != expected) {    failures++;    werror("Test failed for %O\n"    "When: %d\n"    "%O\n"