mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
BUGFIX #2974 simon_w: Fixed date in google sitemap
This commit is contained in:
parent
29bf4caca4
commit
d01188afff
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user