[pmwiki-devel] {(ftime ... )} extension.

Dominique Faure dominique.faure at gmail.com
Fri Oct 19 02:44:21 CDT 2007


On 10/19/07, Stirling Westrup <sti at pooq.com> wrote:
> I recently ran into a problem where I needed to display the same date several
> times on one page, but in different locales. The solution that I came up with
> was to extend the {(ftime...)} function to take an optional third parameter
> 'lc' which takes a locale in which to render the date. Since I use ftime in a
> number of places on my site, I was very careful to preserve all existing
> functionality, so the following should be a safe drop-in replacement. If you
> have a use for it, you can just copy what follows into config.php. I would
> like to see this extension added to the core, if other folks find it useful too.
>
[...]

FYI, I've just integrated your suggestion to
http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus

Anyway, according to this[1], it won't work on PHP4 without more work.

[1] http://drakecms.sourceforge.net/index.php?option=content&id=32&Itemid=10
-- 
Dominique



More information about the pmwiki-devel mailing list