[pmwiki-users] pagevariable for creation time

noskule noskule at gmx.net
Tue May 8 14:36:22 CDT 2007


Patrick R. Michaud schrieb:
> On Tue, May 08, 2007 at 09:09:47PM +0200, noskule wrote:
>> Patrick R. Michaud schrieb:
>>> On Tue, May 08, 2007 at 06:40:55PM +0200, noskule wrote:
>>>> hi list
>>>> is there a pagevar for creation-time
>>>> I thought I could remember a var valled ctime somewhere. Is this somehow
>>>> accessible as a pagevar?
>>> See the bottom of http://www.pmwiki.org/wiki/PmWiki/PageVariables .
>>>
>>> Pm
>>>
>>
>> ah I see thanks, but is it possible, that it autmaticly takes the same
>> format that a user specifies with the $TimeFmt variable in config.php?
>>
>> Something like:
>> $FmtPV['$PageCreationDate'] = 'strftime("$TimeFmt", $page["ctime"])';
> 
> Try:
> 
>   $FmtPV['$Created'] = "strftime(\$GLOBALS['TimeFmt'], \$page['ctime'])";
> 
> Pm
> 
cool, thanks



More information about the pmwiki-users mailing list