data['mod-localtime'] = datetime_convert('UTC', $_POST['timezone'], $t, $bd_format); } } function localtime_content(App $a) { $t = $_REQUEST['time']; if (! $t) { $t = 'now'; } $o .= '
' . L10n::t('Friendica provides this service for sharing events with other networks and friends in unknown timezones.') . '
'; $o .= '' . sprintf(L10n::t('UTC time: %s'), $t) . '
'; if ($_REQUEST['timezone']) { $o .= '' . sprintf(L10n::t('Current timezone: %s'), $_REQUEST['timezone']) . '
'; } if (x($a->data, 'mod-localtime')) { $o .= '' . sprintf(L10n::t('Converted localtime: %s'), $a->data['mod-localtime']) . '
'; } $o .= ''; return $o; }