Back to PhocacartUtils class

Method date

public static
date
(mixed $date, mixed $format = '')

Method date - Source code

public static function date($date, $format = '')
{
    if ($format == '') {
        $format = Text::_('DATE_FORMAT_LC2');
    }
    /*$user	= PhocacartUser::getUser();
    		$config = Factory::getConfig();
    		$dateF 	= Factory::getDate($date, 'UTC');
    		$dateF->setTimezone(new DateTimeZone($user->getParam('timezone', $config->get('offset'))));
    		$dateN	= $dateF->format('Y-m-d h:i:s', true, false);
    		//$dateN = JHtml::date($v->date, JText::_('DATE_FORMAT_LC2'));*/
    $dateN = HTMLHelper::_('date', $date, $format);
    return $dateN;
}