X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flocaltime.php;h=0a3881f6989fb3da25bf719ba25726161933c323;hb=3359f3f5c7ecc4b6a34c4fcfc095ab4dd5fab0f1;hp=fc500f4dd9b0c6711206bcc5cacb0d9eaa81575c;hpb=db949bb802448184bfe5164d8d3dd86ddf51b187;p=friendica.git diff --git a/mod/localtime.php b/mod/localtime.php index fc500f4dd9..0a3881f698 100644 --- a/mod/localtime.php +++ b/mod/localtime.php @@ -1,9 +1,11 @@ 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,7 +38,7 @@ function localtime_content(&$a) { $o .= '

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

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

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

'; @@ -46,5 +47,5 @@ function localtime_content(&$a) { $o .= '
'; return $o; -} + }