Commit cc4a631d authored by Mikael Mrozik's avatar Mikael Mrozik
Browse files

Date error message (bug #795338)



On the share page, change error message on Access Date/Time input fields
from Unrecognised date format to Use the format YYYY/MM/DD HH:MM

Change-Id: I8719694ce88e06db03b2fe59d53cb6600d19a432
Signed-off-by: default avatarMikael Mrozik <mikael@catalyst.net.nz>
parent a4bd7175
......@@ -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