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