X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flocaltime.php;h=00a7c59094ef6313ecf992476fe9be37e4235e20;hb=061bcd7d2fcfb8da18e63ed4fde436b38463539d;hp=f5ecf3a961bb00b9fbb8b107e27d947099daebbd;hpb=0283cbfcd35a29b5689ffbf16439d448de0c7254;p=friendica.git diff --git a/mod/localtime.php b/mod/localtime.php index f5ecf3a961..00a7c59094 100644 --- a/mod/localtime.php +++ b/mod/localtime.php @@ -3,7 +3,7 @@ require_once('include/datetime.php'); -function localtime_post(&$a) { +function localtime_post(App &$a) { $t = $_REQUEST['time']; if(! $t) @@ -16,26 +16,31 @@ function localtime_post(&$a) { } -function localtime_content(&$a) { +function localtime_content(App &$a) { $t = $_REQUEST['time']; if(! $t) $t = 'now'; $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 .= '';