Hi,
I want to show a date (Starttime, used for ditto calls) gathered via tv in a ditto content output.
So I created a snipped like this in many variants
<?php
header(’Content-Type: text/html; charset=UTF-8’);
setlocale(LC_ALL, ’de_DE@euro’, ’de_DE’, ’deu_deu’);
$dateSource = isset($dateSource) ? $dateSource : "StartTime";
return iconv(’ISO-8859-1’, ’UTF-8’, strftime("%d. %B. %Y | %H:%m", $dateSource));
?>
mostly I get an output like this
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: strftime() expects parameter 2 to be long, string given
Error type/ Nr.: Warning - 2
File: /srv/www/web/html/a/manager/includes/document.parser.class.inc.php(769) : eval()’d code
some help would be appreciated