]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
Add Temporal::local() shorthand for Temporal::convert()
[friendica.git] / include / conversation.php
index 755f24764137de6ae5b86d742709b77e8841b4dc..98cb1773b17bab23c3f869434a154bf9b34f802d 100644 (file)
@@ -790,7 +790,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
                                        'categories' => $categories,
                                        'folders' => $folders,
                                        'text' => strip_tags($body_e),
-                                       'localtime' => Temporal::convert($item['created'], date_default_timezone_get(), 'UTC', 'r'),
+                                       'localtime' => Temporal::local($item['created'], 'r'),
                                        'ago' => (($item['app']) ? L10n::t('%s from %s', relative_date($item['created']),$item['app']) : relative_date($item['created'])),
                                        'location' => $location_e,
                                        'indent' => '',