X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Flocaltime.php;h=c32f67976bd4ff37a0003663be40ed74fcfe658f;hb=6161ceff649fd52cb6cdfe14ebe5fdd35f6854a9;hp=aaa93b4ea9c6340d742e459839d5198b6b21aa18;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/mod/localtime.php b/mod/localtime.php index aaa93b4ea9..c32f67976b 100644 --- a/mod/localtime.php +++ b/mod/localtime.php @@ -1,28 +1,26 @@ data['mod-localtime'] = datetime_convert('UTC',$_POST['timezone'],$t,$bd_format); - } } function localtime_content(App $a) { $t = $_REQUEST['time']; - if (! $t) { + if(! $t) $t = 'now'; - } $o .= '

' . t('Time Conversion') . '

'; @@ -32,13 +30,11 @@ function localtime_content(App $a) { $o .= '

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

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

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

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

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

'; - } $o .= '
';