function hikashop_getDate($time = 0,$format = '%d %B %Y %H:%M'){
if(empty($time))
return '';
if(is_numeric($format))
$format = JText::_('DATE_FORMAT_LC'.$format);
if(HIKASHOP_J16){
$format = str_replace(array('%A','%d','%B','%m','%Y','%y','%H','%M','%S','%a'),array('l','d','F','m','Y','y','H','i','s','D'),$format);
return JHTML::_('date',$time,$format,false);
}
static $timeoffset = null;
if($timeoffset === null) {
$config = JFactory::getConfig();
$timeoffset = $config->getValue('config.offset');
}
return JHTML::_('date',$time- date('Z'),$format,$timeoffset);
}