[pmwiki-users] pagelist if=date bug?

adam overton a at plus1plus1plus.org
Thu Jul 23 17:15:26 CDT 2009


it appears this problem is partly alleviated if one supplies HHSS of  
the correct dimension:
this works appropriately:
(:pagelist group=Test list=calendar fmt=#simple if="date  
200901010000..200907222359 {=$Name}2359":)

the internal time functions inside (strftime? strtotime) must be  
assuming the current/$Now HH:SS when not provided with them, right?

however, this is still confusing if just supplying YYYYMMDD. one  
would assume that just supplying the date would include times  
throughout that particular date?

and strangely, even this doesn't work:
(:pagelist group=Test list=calendar fmt=#simple if="date  
200901010000..200907222359 {=$Name}2358":)

?
thanks
adam


On 23 Jul 2009, at 2:53 PM, adam overton wrote:

>
> hi
> i'm this seems like a bug with the if="date ..." function in pagelist?
> i have a list pages for events whose names are all in the format  
> YYYYMMDD.
> i'm finding that if i set a date range with the intention of  
> listing pages within that range (inclusive), it always spits out  
> pages from that range PLUS one more day later.
> i've successfully reproduced the error on http://www.pmwiki.org/ 
> wiki/Test/PagelistDateError
> is there a reasonable excuse for the results i'm getting? has this  
> already been documented elsewhere?
>
> for example i have these pages:
> current existing event pages in this group:
> Test.20090701
> Test.20090702
> Test.20090703
> Test.20090704
>
> the following code, (:pagelist group=Test fmt=#simple if="date  
> 20090701..20090702 {=$Name}":)
> should spit out:
> Test.20090701
> Test.20090702
>
> but instead it spits out:
>
> Test.20090701
> Test.20090702
> Test.20090703
> the same thing if i advance it one day: (:pagelist group=Test  
> fmt=#simple if="date 20090701..20090703 {=$Name}":)
> it should spit out:
> Test.20090701
> Test.20090702
> Test.20090703
>
> but instead it spits out:
>
> Test.20090701
> Test.20090702
> Test.20090703
> Test.20090704
>
>
> thanks for the help
> adam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090723/fbd78c1a/attachment.html 


More information about the pmwiki-users mailing list