BUGFIX updated google site map with correct SSDatetime function name

This commit is contained in:
mandrew 2010-02-02 22:09:18 +00:00
parent 7a4f572fbc
commit e9eecda415

View File

@ -62,9 +62,9 @@ class GoogleSitemap extends Controller {
// The one field that isn't easy to deal with in the template is // The one field that isn't easy to deal with in the template is
// Change frequency, so we set that here. // Change frequency, so we set that here.
$properties = $page->toMap(); $properties = $page->toMap();
$created = new SS_Datetime(); $created = new SSDatetime();
$created->value = $properties['Created']; $created->value = $properties['Created'];
$now = new SS_Datetime(); $now = new SSDatetime();
$now->value = date('Y-m-d H:i:s'); $now->value = 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');