X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontacts.php;h=c37c4f3d5076ba2a8e40cee4309ea34b6a769524;hb=5e7285b9ba3236e3c5b6163df323eefebbc8b20e;hp=81f1a6cafdef6ea8b95b8a535a2fe1451eb68f17;hpb=b7a735529212a1305bdfa74b874cef9789d01a2d;p=friendica.git diff --git a/mod/contacts.php b/mod/contacts.php index 81f1a6cafd..c37c4f3d50 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -17,7 +17,7 @@ use Friendica\Model\GContact; use Friendica\Model\Group; use Friendica\Model\Profile; use Friendica\Network\Probe; -use Friendica\Util\Temporal; +use Friendica\Util\DateTimeFormat; require_once 'mod/proxy.php'; @@ -540,7 +540,7 @@ function contacts_content(App $a) $insecure = L10n::t('Private communications are not available for this contact.'); - $last_update = (($contact['last-update'] <= NULL_DATE) ? L10n::t('Never') : Temporal::local($contact['last-update'], 'D, j M Y, g:i A')); + $last_update = (($contact['last-update'] <= NULL_DATE) ? L10n::t('Never') : DateTimeFormat::local($contact['last-update'], 'D, j M Y, g:i A')); if ($contact['last-update'] > NULL_DATE) { $last_update .= ' ' . (($contact['last-update'] <= $contact['success_update']) ? L10n::t("\x28Update was successful\x29") : L10n::t("\x28Update was not successful\x29")); @@ -554,7 +554,7 @@ function contacts_content(App $a) // tabs $tab_str = contacts_tab($a, $contact_id, 2); - $lost_contact = (($contact['archive'] && $contact['term-date'] > NULL_DATE && $contact['term-date'] < Temporal::utcNow()) ? L10n::t('Communications lost with this contact!') : ''); + $lost_contact = (($contact['archive'] && $contact['term-date'] > NULL_DATE && $contact['term-date'] < DateTimeFormat::utcNow()) ? L10n::t('Communications lost with this contact!') : ''); $fetch_further_information = null; if ($contact['network'] == NETWORK_FEED) {