public function FormatFromSettings($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

        // Fall back to nice
        if (!$member) {
            return $this->Nice();
        }

        $dateFormat = $member->getDateFormat();
        $timeFormat = $member->getTimeFormat();

        // Get user format
        return $this->Format($dateFormat . ' ' . $timeFormat, $member->getLocale());
    }
public function FormatFromSettings($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

        // Fall back to nice
        if (!$member) {
            return $this->Nice();
        }

        $dateFormat = $member->getDateFormat();
        $timeFormat = $member->getTimeFormat();

        // Get user format
        return $this->Format($dateFormat . ' ' . $timeFormat, $member->getLocale());
    }
public function FormatFromSettings ( $ member = null ) { if ( ! $ member ) { $ member = Security :: getCurrentUser ( ) ; } // Fall back to nice if ( ! $ member ) { return $ this -> Nice ( ) ; } $ dateFormat = $ member -> getDateFormat ( ) ; $ timeFormat = $ member -> getTimeFormat ( ) ; // Get user format return $ this -> Format ( $ dateFormat . ' ' . $ timeFormat , $ member -> getLocale ( ) ) ; }
Return a date and time formatted as per a CMS user's settings.

@param Member $member
@return boolean | string A time and date pair formatted as per user-defined settings.
Return a date and time formatted as per a CMS user s settings .