diff --git a/classes/forms/outage/edit.php b/classes/forms/outage/edit.php index 3419b48..26d3c77 100644 --- a/classes/forms/outage/edit.php +++ b/classes/forms/outage/edit.php @@ -72,9 +72,6 @@ class edit extends \moodleform { public function validation($data, $files) { $errors = parent::validation($data, $files); - if ($data['starttime'] <= time()) { - $errors['starttime'] = get_string('starttimeerrornotinfuture', 'auth_outage'); - } if ($data['stoptime'] <= $data['starttime']) { $errors['stoptime'] = get_string('stoptimeerrornotafterstart', 'auth_outage'); } diff --git a/lang/en/auth_outage.php b/lang/en/auth_outage.php index f57638e..d158959 100644 --- a/lang/en/auth_outage.php +++ b/lang/en/auth_outage.php @@ -42,7 +42,6 @@ $string['outagedelete'] = 'Delete Outage'; $string['outagedeletewarning'] = 'You are about to permanently delete the outage below. This cannot be undone.'; $string['outageslist'] = 'Outages List'; $string['pluginname'] = 'Outage manager'; -$string['starttimeerrornotinfuture'] = 'Start time must be in the future.'; $string['starttime'] = 'Start date and time'; $string['stoptimeerrornotafterstart'] = 'Stop time must be after start time.'; $string['stoptime'] = 'Stop date and time';