Date error,
hi I am using this Metatags extra on most of my site s. One small problem however. The copyright script bit, pulls the year 2005(?)
// *** AUTHOR, COPYRIGHT, PUBLISHER and COMPANY ***
$authorid = $modx->documentObject['createdby'];
$createdon = date(Y,$modx->documentObject['createdon']);
$MetaCopyright = " <meta name=\"copyright\" content=\"Copyright (c) $createdon by $authorname. All rights reserved.\" />\n";
Changing that to following, the date jumps back to 1970 (?)
// *** AUTHOR, COPYRIGHT, PUBLISHER and COMPANY ***
$authorid = $modx->documentObject['createdby'];
$createdon = date(Y,$modx->documentObject['createdon:date=`%d.%m.%Y`']);
$MetaCopyright = " <meta name=\"copyright\" content=\"Copyright (c) $createdon by $authorname. All rights reserved.\" />\n";
For the rest it s a nice snippet I think, so if someone could figure out what s wrong here)
thanks.