X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Flocaltime.php;h=0a3881f6989fb3da25bf719ba25726161933c323;hb=ab60641e3ba731aca42ab510bdf9c2411db6aab4;hp=f5ecf3a961bb00b9fbb8b107e27d947099daebbd;hpb=2f5a34ad1791f01cacb3b86c11501f0e11c67df4;p=friendica.git diff --git a/mod/localtime.php b/mod/localtime.php index f5ecf3a961..0a3881f698 100644 --- a/mod/localtime.php +++ b/mod/localtime.php @@ -1,9 +1,11 @@ ' . 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 .= ''; - $o .= '

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

'; + $o .= '

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

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