src/Common/Service/DateTime.php
public function setTimeFormat($sSlug = null)
    {
        $oTimeFormat = $this->getTimeFormatBySlug($sSlug);
        if (empty($oTimeFormat)) {
            $oTimeFormat = $this->getTimeFormatDefault();
        }

        $this->sUserFormatTime = $oTimeFormat->format;
    }
public function setTimeFormat($sSlug = null)
    {
        $oTimeFormat = $this->getTimeFormatBySlug($sSlug);
        if (empty($oTimeFormat)) {
            $oTimeFormat = $this->getTimeFormatDefault();
        }

        $this->sUserFormatTime = $oTimeFormat->format;
    }
public function setTimeFormat ( $ sSlug = null ) { $ oTimeFormat = $ this -> getTimeFormatBySlug ( $ sSlug ) ; if ( empty ( $ oTimeFormat ) ) { $ oTimeFormat = $ this -> getTimeFormatDefault ( ) ; } $ this -> sUserFormatTime = $ oTimeFormat -> format ; }
Set the time format to use, uses default if slug cannot be found

@param string $sSlug The time format's slug
Set the time format to use uses default if slug cannot be found