Skip to content

Commit

Permalink
Set in place missing setters for a valid Revision
Browse files Browse the repository at this point in the history
  • Loading branch information
renoirb committed Jul 22, 2015
1 parent 4a5ecf7 commit b6c7603
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/WebPlatform/ContentConverter/Model/MarkdownRevision.php
Expand Up @@ -8,6 +8,9 @@

use Symfony\Component\Yaml\Dumper;

use DateTime;
use DateTimeZone;

/**
* Markdown Revision.
*
Expand All @@ -24,6 +27,12 @@ public function __construct($content = '', $front_matter = array())
{
$this->setContent($content);
$this->front_matter = $front_matter;
$datetime = new DateTime;
$datetime->setTimezone(new DateTimeZone('Etc/UTC'));
$this->setTimestamp($datetime);
$this->setComment('Conversion into Markdown');

return $this;
}

public function getContent()
Expand Down

0 comments on commit b6c7603

Please sign in to comment.