Skip to content

Commit 488270c

Browse files
committed
Parsing fails so the starttime is set to 0
Mostly added to show the problem.
1 parent 91fbd94 commit 488270c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

webapp/tests/Unit/Controller/Jury/ContestControllerTest.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,17 @@ class ContestControllerTest extends JuryControllerTestCase
291291
'name' => 'Timezones',
292292
'activatetimeString' => '1990-07-17 16:00:00 Africa/Douala',
293293
'starttimeString' => '1990-07-17 16:00:00 Etc/GMT+2',
294-
'freezetimeString' => '1990-07-17 16:00:00 America/Paramaribo']],
294+
'freezetimeString' => '1990-07-17 16:00:00 America/Paramaribo'],
295+
['shortname' => 'tzoffset',
296+
'name' => 'TimezonesOffset',
297+
'activatetimeString' => '1990-07-17 16:00:00+1:00',
298+
'starttimeString' => '1990-07-17 16:00:00+1:01',
299+
'freezetimeString' => '1990-07-17 16:00:00+1:01']],
300+
'Contest ends before it even starts.' => [['shortname' => 'unknown_php_timezone',
301+
'name' => 'PHP Others timezone non-IANA',
302+
'activatetimeString' => '1990-07-17 16:00:00 NZ-CHAT',
303+
'starttimeString' => '1990-07-17 16:00:00 NZ-CHAT',
304+
'freezetimeString' => '1990-07-17 16:00:00 NZ-CHAT']],
295305
'This value should not be blank.' => [['shortname' => '', 'name' => 'Empty'],
296306
['name' => '', 'shortname' => 'empty_name'],
297307
['problems' => ['0' => ['problem' => '2',

0 commit comments

Comments
 (0)