From: Hypolite Petovan Date: Sat, 3 Feb 2018 17:31:33 +0000 (-0500) Subject: Replace datetime functions by Temporal methods X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80cfdc68c983f42ee43df15c50610f0a0dc49657;p=friendica-addons.git Replace datetime functions by Temporal methods --- diff --git a/forumdirectory/forumdirectory.php b/forumdirectory/forumdirectory.php index 03e77002..a72c45ba 100644 --- a/forumdirectory/forumdirectory.php +++ b/forumdirectory/forumdirectory.php @@ -13,6 +13,7 @@ use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Database\DBM; use Friendica\Model\Profile; +use Friendica\Util\Temporal; require_once 'boot.php'; require_once 'include/dba.php'; @@ -149,7 +150,7 @@ function forumdirectory_content(&$a) $details .= $rr['country-name']; } - if (strlen($rr['dob']) && ($years = age($rr['dob'], $rr['timezone'], '')) != 0) { + if (strlen($rr['dob']) && ($years = Temporal::getAgeByTimezone($rr['dob'], $rr['timezone'], '')) != 0) { $details .= '
' . L10n::t('Age: ') . $years; }