Merge pull request #382 from fermionic/archive-widget-bug
check for posted dates based on month only
This commit is contained in:
commit
5fc47d03bc
1 changed files with 3 additions and 1 deletions
|
@ -3621,7 +3621,9 @@ function posted_dates($uid,$wall) {
|
||||||
$dnow = substr($dthen,0,8) . '28';
|
$dnow = substr($dthen,0,8) . '28';
|
||||||
|
|
||||||
$ret = array();
|
$ret = array();
|
||||||
while($dnow >= $dthen) {
|
// Starting with the current month, get the first and last days of every
|
||||||
|
// month down to and including the month of the first post
|
||||||
|
while(substr($dnow, 0, 7) >= substr($dthen, 0, 7)) {
|
||||||
$dstart = substr($dnow,0,8) . '01';
|
$dstart = substr($dnow,0,8) . '01';
|
||||||
$dend = substr($dnow,0,8) . get_dim(intval($dnow),intval(substr($dnow,5)));
|
$dend = substr($dnow,0,8) . get_dim(intval($dnow),intval(substr($dnow,5)));
|
||||||
$start_month = datetime_convert('','',$dstart,'Y-m-d');
|
$start_month = datetime_convert('','',$dstart,'Y-m-d');
|
||||||
|
|
Loading…
Reference in a new issue