[pmwiki-users] Using ctime

Petko Yotov 5ko at 5ko.fr
Sun Jul 10 03:15:00 CDT 2011


On Sunday 10 July 2011 08:25:50, Simon wrote :
> http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Songbook/ByCreated
> 
> But I haven't quite got created time to work
> 
> Is this correct for config.php
> 
> $FmtPV['$Created'] = "strftime(\$GLOBALS['TimeFmt'], \$page['ctime'])";
> $FmtPV['$CreatedTime'] = $page["ctime"];

This should probably be wrapped in single quotes:

  $FmtPV['$CreatedTime'] = '$page["ctime"]';

Petko



More information about the pmwiki-users mailing list