From 80cfdc68c983f42ee43df15c50610f0a0dc49657 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 3 Feb 2018 12:31:33 -0500 Subject: [PATCH] Replace datetime functions by Temporal methods --- forumdirectory/forumdirectory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forumdirectory/forumdirectory.php b/forumdirectory/forumdirectory.php index 03e770022..a72c45ba4 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; }