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
1 changed files with 1 additions and 1 deletions

View File

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