src/ORM/FieldType/DBTime.php
public function FormatFromSettings($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

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

        // Get user format
        $format = $member->getTimeFormat();
        return $this->Format($format);
    }
public function FormatFromSettings($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

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

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

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