[pmwiki-devel] (:if date:) page variables quandary

Patrick R. Michaud pmichaud at pobox.com
Tue Oct 16 15:50:34 CDT 2007


On Tue, Oct 16, 2007 at 03:33:26PM -0500, Patrick R. Michaud wrote:
> Yes, page variables can be used in (:if date:) directives.
> 
> The problem is that PmWiki (or the strftime function) is having
> trouble parsing "-1 month" as a date.  Try "-1month" or "-30days"
> instead.

Sorry, I meant the "strtotime" function here, not "strftime".

Still, it seems to work if the date specification doesn't have spaces
in it.

Pm



More information about the pmwiki-devel mailing list