diff --git a/mod/localtime.php b/mod/localtime.php index f5ecf3a961..c03eae1b0e 100644 --- a/mod/localtime.php +++ b/mod/localtime.php @@ -26,16 +26,21 @@ function localtime_content(&$a) { $o .= '

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

'; + + $o .= '

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

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

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

'; + if(x($a->data,'mod-localtime')) $o .= '

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

'; - $o .= '

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

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

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

'; - $o .= select_timezone(); + $o .= select_timezone(($_REQUEST['timezone']) ? $_REQUEST['timezone'] : 'America/Los_Angeles'); $o .= '
';