mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
BUGFIX updated google site map with correct SSDatetime function name
This commit is contained in:
parent
7a4f572fbc
commit
e9eecda415
@ -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 SS_Datetime();
|
||||
$created = new SSDatetime();
|
||||
$created->value = $properties['Created'];
|
||||
$now = new SS_Datetime();
|
||||
$now = new SSDatetime();
|
||||
$now->value = date('Y-m-d H:i:s');
|
||||
$versions = $properties['Version'];
|
||||
$timediff = $now->format('U') - $created->format('U');
|
||||
|
Loading…
Reference in New Issue
Block a user