data['mod-localtime'] = datetime_convert('UTC',$_POST['timezone'],$t,$bd_format); } function localtime_content(&$a) { $t = $_REQUEST['time']; if(! $t) $t = 'now'; $o .= '

' . t('Time Conversion') . '

'; $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 .= '
'; $o .= '

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

'; $o .= select_timezone(($_REQUEST['timezone']) ? $_REQUEST['timezone'] : 'America/Los_Angeles'); $o .= '
'; return $o; }