data['mod-localtime'] = datetime_convert('UTC',$_POST['timezone'],$t,$bd_format); } function localtime_content(&$a) { $t = $_REQUEST['time']; if(! $t) $t = 'now'; $o .= '
' . t('Friendika provides this service for sharing events with other networks and friends in unknown timezones.') . '
'; if(x($a->data,'mod-localtime')) $o .= '' . sprintf( t('Converted localtime: %s'),$a->data['mod-localtime']) . '
'; $o .= '' . sprintf( t('UTC time: %s'), $t) . '
'; $o .= ''; return $o; }