format date with getLongReadableDate()

This commit is contained in:
Uwe Steinmann 2020-12-01 21:59:02 +01:00
parent bf22fe7e6a
commit fcab6f5a09

View File

@ -1363,7 +1363,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
print "<tr>\n";
print "<td>".$reqName."</td>\n";
print "<td><ul class=\"unstyled\"><li>".$r["date"]."</li>";
print "<td><ul class=\"unstyled\"><li>".getLongReadableDate($r["date"])."</li>";
/* $updateUser is the user who has done the receipt */
$updateUser = $dms->getUser($r["userID"]);
print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."</li></ul></td>";
@ -1494,7 +1494,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
if($user->isAdmin() || $r["status"] != -2) {
print "<tr>\n";
print "<td>".$reqName."</td>\n";
print "<td><ul class=\"unstyled\"><li>".$r["date"]."</li>";
print "<td><ul class=\"unstyled\"><li>".getLongReadableDate($r["date"])."</li>";
/* $updateUser is the user who has done the revision */
if($r['status'] != 0) {
$updateUser = $dms->getUser($r["userID"]);