Commit a497a164 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Never commit and push striaght to master

parent 89c7a7b1
Pipeline #9367 passed with stages
in 2 minutes and 52 seconds
......@@ -27,7 +27,7 @@ class LocalSchedulesRepository extends InMemorySchedulesRepository
LocalGroupsRepository::getComputerScienceMajorGroup()->getId(),
Schedule::TYPE_OPEN_MODE,
// Open mode for 10 mintes, not open mode for 10 minutes
'RRULE:FREQ=SECONDLY;INTERVAL=20',
'RRULE:FREQ=MINUTELY;INTERVAL=20',
1000 * 60 * 10,
'Computer science lab open mode schedule, every 20 minutes for 10 minutes',
Carbon::now()
......
......@@ -45,8 +45,7 @@ class StatusResponsePresenterTest extends TestCase
*/
public function it_presents_open_mode_events(): void
{
$date = new Carbon('2020-05-19 16:45:25');
$date->setTimezone('Asia/Ho_Chi_Minh');
$date = new Carbon('2020-05-19 16:45:25', 'America/New_York');
$this->responseModel->addEvent(new OpenEvent($date->clone()->subDay(), $date));
......@@ -55,8 +54,8 @@ class StatusResponsePresenterTest extends TestCase
$events = $this->response['events'];
$this->assertCount(1, $events);
$this->assertCount(2, $events[0]);
$this->assertEquals('2020-05-18T23:45:25+07:00', $events[0]['begins_at']);
$this->assertEquals('2020-05-19T23:45:25+07:00', $events[0]['ends_at']);
$this->assertEquals('2020-05-18T16:45:25-04:00', $events[0]['begins_at']);
$this->assertEquals('2020-05-19T16:45:25-04:00', $events[0]['ends_at']);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment