Commit 1c2f536871281801997be2c6a84591bf637d7767

Authored by Elena.Budnik
1 parent c3b20775

message for TimeRestriction

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
php/classes/AmdaAction.php
... ... @@ -349,11 +349,14 @@ class AmdaAction
349 349 if ($child->getAttribute("group") === "TBD") {
350 350 $info .= "<br/><b>Under Testing</b>";
351 351 }
352   - else {
353   - $info .= "<br/><b>Restricted Access : Group ".$child->getAttribute('group')."</b>";
  352 + else {
354 353 if (!empty($timeRestriction)) {
355 354 $disable = FALSE;
356   - $info .= "<br/><b>Time Restriction : ".$timeRestriction."</b>";
  355 + $formattedTimeRestriction = date("Y-m-d\TH:i:s\Z",strtotime($timeRestriction)+1);
  356 + $info .= "<br/><b>After $formattedTimeRestriction data are restricted to group ".$child->getAttribute('group')."</b>";
  357 + }
  358 + else {
  359 + $info .= "<br/><b>Restricted Access : Group ".$child->getAttribute('group')."</b>";
357 360 }
358 361 }
359 362 }
... ...