|
@@ -80,6 +80,7 @@ if($submit) {
|
|
|
$unix_end = $dt_end->format("U");
|
|
$unix_end = $dt_end->format("U");
|
|
|
|
|
|
|
|
if($unix_start > $unix_end) $form_exception->addError(__("Entry Time must not be after Exit Time."));
|
|
if($unix_start > $unix_end) $form_exception->addError(__("Entry Time must not be after Exit Time."));
|
|
|
|
|
+ if($unix_start === $unix_end) $form_exception->addError(__("Entry Time must not equal the Exit Time."));
|
|
|
if(!$unix_start && $unix_end && $test->dts_start) {
|
|
if(!$unix_start && $unix_end && $test->dts_start) {
|
|
|
$recorded_start_unix = Util::getUnixTimeFromUTC($test->dts_start);
|
|
$recorded_start_unix = Util::getUnixTimeFromUTC($test->dts_start);
|
|
|
if($unix_end < $recorded_start_unix) $form_exception->addError(__("Exit Time cannot be later than the recorded Entry Time."));
|
|
if($unix_end < $recorded_start_unix) $form_exception->addError(__("Exit Time cannot be later than the recorded Entry Time."));
|