X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flocaltime.php;h=00a7c59094ef6313ecf992476fe9be37e4235e20;hb=061bcd7d2fcfb8da18e63ed4fde436b38463539d;hp=fc500f4dd9b0c6711206bcc5cacb0d9eaa81575c;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git diff --git a/mod/localtime.php b/mod/localtime.php index fc500f4dd9..00a7c59094 100644 --- a/mod/localtime.php +++ b/mod/localtime.php @@ -2,8 +2,8 @@ require_once('include/datetime.php'); -if(! function_exists('localtime_post')) { -function localtime_post(&$a) { + +function localtime_post(App &$a) { $t = $_REQUEST['time']; if(! $t) @@ -13,11 +13,10 @@ function localtime_post(&$a) { if($_POST['timezone']) $a->data['mod-localtime'] = datetime_convert('UTC',$_POST['timezone'],$t,$bd_format); -} + } -if(! function_exists('localtime_content')) { -function localtime_content(&$a) { +function localtime_content(App &$a) { $t = $_REQUEST['time']; if(! $t) $t = 'now'; @@ -37,14 +36,14 @@ function localtime_content(&$a) { $o .= '

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

'; - $o .= '
'; + $o .= ''; - $o .= '

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

'; + $o .= '

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

'; $o .= select_timezone(($_REQUEST['timezone']) ? $_REQUEST['timezone'] : 'America/Los_Angeles'); $o .= '
'; return $o; -} -} + +} \ No newline at end of file