X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flocaltime.php;h=d1453bc5272bd3cf2aa5ad8017853c75fdc44a85;hb=4b8ca578d1245c760a1c04bea6daf5b8582d0cbd;hp=f5ecf3a961bb00b9fbb8b107e27d947099daebbd;hpb=0283cbfcd35a29b5689ffbf16439d448de0c7254;p=friendica.git diff --git a/mod/localtime.php b/mod/localtime.php index f5ecf3a961..d1453bc527 100644 --- a/mod/localtime.php +++ b/mod/localtime.php @@ -23,19 +23,24 @@ function localtime_content(&$a) { $o .= '

' . t('Time Conversion') . '

'; - $o .= '

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

'; + $o .= '

' . t('Friendica 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 .= '
';