BUGFIX #2974 simon_w: Fixed date in google sitemap

This commit is contained in:
sminnee 2008-11-28 03:11:35 +00:00
parent 29bf4caca4
commit d01188afff

View File

@ -51,7 +51,7 @@ class GoogleSitemap extends Controller {
// Change frequency, so we set that here. // Change frequency, so we set that here.
$properties = $page->toMap(); $properties = $page->toMap();
$created = new SSDatetime($properties['Created']); $created = new SSDatetime($properties['Created']);
$now = new SSDatetime(); $now = new SSDatetime(date('Y-m-d H:i:s'));
$versions = $properties['Version']; $versions = $properties['Version'];
$timediff = $now->format('U') - $created->format('U'); $timediff = $now->format('U') - $created->format('U');