[ic] [convert-date] - incorrect day of week

Peter peter at pajamian.dhs.org
Mon Jun 15 18:01:50 UTC 2009


On 06/15/2009 10:35 AM, Marty Tennison wrote:
> IC = 5.7.1-200905270658
> PERL = 5.8.8
> 
> This....
> 
> 20090617=[convert-date fmt="%A, %B %d"]20090617[/convert-date]<br>
> 20090618=[convert-date fmt="%A, %B %d"]20090618[/convert-date]<br>
> 20090619=[convert-date fmt="%A, %B %d"]20090619[/convert-date]<br>
> 
> Outputs this..... (day of week is wrong)
> 
> 20090617=Sunday, June 17
> 20090618=Sunday, June 18
> 20090619=Sunday, June 19

Thanks for the bug report and I'll have it fixed in git soon.  As a
temporary workaround you can do this:

[convert-date adjust="0s" fmt="%A, %B %d"]20090617[/convert-date]
[convert-date adjust="0s" fmt="%A, %B %d"]20090618[/convert-date]
[convert-date adjust="0s" fmt="%A, %B %d"]20090619[/convert-date]



Peter



More information about the interchange-users mailing list