Skip to content

Commit

Permalink
Use DateTime::W3C instead of DateTime::DATE_W3C
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathew Davies committed Sep 1, 2014
1 parent 0f7254c commit 40f4788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sitemap/Sitemap/SitemapEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct($loc, $lastMod = null, $changeFreq = null, $priority
public function setLastMod($lastMod)
{
if ($lastMod instanceof \DateTime) {
$lastMod = $lastMod->format(\DateTime::DATE_W3C);
$lastMod = $lastMod->format(\DateTime::W3C);
}

$this->lastMod = $lastMod;
Expand Down

0 comments on commit 40f4788

Please sign in to comment.