src/Sonic/Routes/Feed/AtomRoute.php
public function posts()
    {
        // Get dates from all content
        $dates = $this->dates('content');

        // Get filenames of content and create array to hold posts
        $posts = $this->excerpts(array_keys($dates));

        foreach ($posts as $path => $post) {

            // Try and get post date, otherwise use Unix Epoch date
            $post_date = isset($post['meta']['date']) === TRUE
                ? new \DateTime($post['meta']['date'])
                : new \DateTime('01-01-1970');

            $timestamp = $this->sonic->app['filesystem']->getTimestamp(
                $this->sonic->app['settings']['sonic.content_dir'] .'/' . $path
            );

            // Create additional fields for Atom stuff
            $posts[$path]['id']             = $this->make_id($this->sonic->app['helper']->url_for($path));
            $posts[$path]['published_date'] = $post_date->format(\DateTime::ATOM);
            $posts[$path]['modified_date']  = date('Y-m-d\TH:i:sP', $timestamp);
        }

        return $posts;
    }
public function posts()
    {
        // Get dates from all content
        $dates = $this->dates('content');

        // Get filenames of content and create array to hold posts
        $posts = $this->excerpts(array_keys($dates));

        foreach ($posts as $path => $post) {

            // Try and get post date, otherwise use Unix Epoch date
            $post_date = isset($post['meta']['date']) === TRUE
                ? new \DateTime($post['meta']['date'])
                : new \DateTime('01-01-1970');

            $timestamp = $this->sonic->app['filesystem']->getTimestamp(
                $this->sonic->app['settings']['sonic.content_dir'] .'/' . $path
            );

            // Create additional fields for Atom stuff
            $posts[$path]['id']             = $this->make_id($this->sonic->app['helper']->url_for($path));
            $posts[$path]['published_date'] = $post_date->format(\DateTime::ATOM);
            $posts[$path]['modified_date']  = date('Y-m-d\TH:i:sP', $timestamp);
        }

        return $posts;
    }
Method required by abstract class. Returns an array of posts
that match whatever requirements for this route.

@return array