REVERT reverted back to origional SS_Datetime function

This commit is contained in:
mandrew 2010-02-02 22:28:11 +00:00
parent e9eecda415
commit a8d1e91ddf

View File

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