Commit 8add246e authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Date error message (bug #795338)"

parents d3cea2c4 cc4a631d
......@@ -414,7 +414,7 @@ function editaccess_validate(Pieform $form, $values) {
$item['startdate'] = null;
}
else if (!$item['startdate'] = strptime($item['startdate'], $dateformat)) {
$SESSION->add_error_msg(get_string('unrecogniseddateformat', 'view'));
$SESSION->add_error_msg(get_string('datetimeformatguide'));
$form->set_error('accesslist', '');
break;
}
......@@ -422,7 +422,7 @@ function editaccess_validate(Pieform $form, $values) {
$item['stopdate'] = null;
}
else if (!$item['stopdate'] = strptime($item['stopdate'], $dateformat)) {
$SESSION->add_error_msg(get_string('unrecogniseddateformat', 'view'));
$SESSION->add_error_msg(get_string('datetimeformatguide'));
$form->set_error('accesslist', '');
break;
}
......
Markdown is supported
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