1851 Posts in 1606 Topics by 561 members
|Go to End|
28 July 2010 at 6:04am
i wanted the "last month's entries" on my BlogHolder.
Its a german Website so locale is "de_DE".
But the BlogHolder remained empty when i published some BlogEntries that are for example 5 days in the past.
I am not sure if its a Bug in BlogTree.php or if i am doing something wrong.
I guess the code in line 232
is calculating wrong.
Instead of substituting 1 month, he substituted 1 day and added 1 hour.
see screenshot for debugmessages
When i change the line to:
its a little bit better, because he substitutes 1 month and 1 day
Anyone else with this problem?
17 January 2012 at 9:43am
Yes, I can confirm this behavior, choosing posts from the last 6 months just subtracted 6 days, locale being de_DE. With locale set to en_US like so (in blog/code/BlogTree.php):
$d->sub($this->LandingPageFreshness, null, 'en_US');
beams me 6 months and three days into the past. I guess it's a bug in ZF.
I went for the solution from this post:
and it works...
|Go to Top|