]> git.mxchange.org Git - friendica.git/blobdiff - mod/localtime.php
BBCode - fixed syntax error
[friendica.git] / mod / localtime.php
index fd1ef33a95ee2571e052659701a5ebd987f2dd6b..f68c3fba509600f621469f5be3a5b2c8b64dab0e 100644 (file)
@@ -9,8 +9,6 @@ use Friendica\Core\System;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Temporal;
 
-require_once 'include/datetime.php';
-
 function localtime_post(App $a)
 {
        $t = $_REQUEST['time'];
@@ -32,7 +30,7 @@ function localtime_content(App $a)
                $t = 'now';
        }
 
-       $o .= '<h3>' . L10n::t('Time Conversion') . '</h3>';
+       $o  = '<h3>' . L10n::t('Time Conversion') . '</h3>';
 
        $o .= '<p>' . L10n::t('Friendica provides this service for sharing events with other networks and friends in unknown timezones.') . '</p>';
 
@@ -44,7 +42,7 @@ function localtime_content(App $a)
                $o .= '<p>' . L10n::t('Current timezone: %s', $_REQUEST['timezone']) . '</p>';
        }
 
-       if (x($a->data, 'mod-localtime')) {
+       if (!empty($a->data['mod-localtime'])) {
                $o .= '<p>' . L10n::t('Converted localtime: %s', $a->data['mod-localtime']) . '</p>';
        }