data['mod-localtime'] = DateTimeFormat::convert($t, $_POST['timezone'], 'UTC', $bd_format); } } function localtime_content(App $a) { $t = $_REQUEST['time']; if (! $t) { $t = 'now'; } $o = '

' . L10n::t('Time Conversion') . '

'; $o .= '

' . L10n::t('Friendica provides this service for sharing events with other networks and friends in unknown timezones.') . '

'; $o .= '

' . L10n::t('UTC time: %s', $t) . '

'; if ($_REQUEST['timezone']) { $o .= '

' . L10n::t('Current timezone: %s', $_REQUEST['timezone']) . '

'; } if (!empty($a->data['mod-localtime'])) { $o .= '

' . L10n::t('Converted localtime: %s', $a->data['mod-localtime']) . '

'; } $o .= '
'; $o .= '

' . L10n::t('Please select your timezone:') . '

'; $o .= Temporal::getTimezoneSelect(($_REQUEST['timezone']) ? $_REQUEST['timezone'] : 'America/Los_Angeles'); $o .= '
'; return $o; }