From 29c0d889cdcf5d7eddf8ec288a6214cdba896780 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 1 Dec 2020 21:43:10 +0100 Subject: [PATCH] format dates with getLongReadableDate() --- views/bootstrap/class.Bootstrap.php | 2 +- views/bootstrap/class.DocumentVersionDetail.php | 6 +++--- views/bootstrap/class.ViewDocument.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index caf807779..f678f9022 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -3082,7 +3082,7 @@ $(document).ready(function() { echo $reqName; echo ""; echo ""; - echo "".$rec['date']." - "; + echo "".getLongReadableDate($rec['date'])." - "; $updateuser = $dms->getUser($rec["userID"]); if(!is_object($updateuser)) echo getMLText("unknown_user"); diff --git a/views/bootstrap/class.DocumentVersionDetail.php b/views/bootstrap/class.DocumentVersionDetail.php index 99d9fc537..833bdb67d 100644 --- a/views/bootstrap/class.DocumentVersionDetail.php +++ b/views/bootstrap/class.DocumentVersionDetail.php @@ -382,7 +382,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style { } print "\n"; print "".$reqName."\n"; - print "".$r["date"]." - "; + print "".getLongReadableDate($r["date"])." - "; /* $updateUser is the user who has done the review */ $updateUser = $dms->getUser($r["userID"]); print (is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."
"; @@ -436,7 +436,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style { } print "\n"; print "".$reqName."\n"; - print "".$a["date"]." - "; + print "".getLongReadableDate($a["date"])." - "; /* $updateUser is the user who has done the approval */ $updateUser = $dms->getUser($a["userID"]); print (is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$a["userID"]."'")."
"; @@ -549,7 +549,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style { $fullname = $suser->getFullName(); else $fullname = "--"; - echo "".$entry['date']."".getOverallStatusText($entry['status'])."".$fullname."".$entry['comment']."\n"; + echo "".getLongReadableDate($entry['date'])."".getOverallStatusText($entry['status'])."".$fullname."".$entry['comment']."\n"; } print "\n\n"; $this->contentContainerEnd(); diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 7f9fa4c98..b64051ed9 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -742,7 +742,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $fullname = htmlspecialchars($suser->getFullName()); else $fullname = "--"; - echo "".$entry['date']."".getOverallStatusText($entry['status'])."".$fullname."".htmlspecialchars($entry['comment'])."\n"; + echo "".getLongReadableDate($entry['date'])."".getOverallStatusText($entry['status'])."".$fullname."".htmlspecialchars($entry['comment'])."\n"; } print "\n\n"; $this->contentContainerEnd(); @@ -847,7 +847,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if($user->isAdmin() || $r["status"] > -2) { print "\n"; print "".$reqName."\n"; - print "".$r["date"]." - "; + print "".getLongReadableDate($r["date"])." - "; /* $updateUser is the user who has done the review */ $updateUser = $dms->getUser($r["userID"]); print (is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."
"; @@ -949,7 +949,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if($user->isAdmin() || $a["status"] > -2) { print "\n"; print "".$reqName."\n"; - print "".$a["date"]." - "; + print "".getLongReadableDate($a["date"])." - "; /* $updateUser is the user who has done the approval */ $updateUser = $dms->getUser($a["userID"]); print (is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$a["userID"]."'")."
";