* fix bug #700.
This commit is contained in:
@@ -207,7 +207,7 @@ class date
|
||||
*/
|
||||
public static function getLastMonth()
|
||||
{
|
||||
$begin = date('Y-m', strtotime('last month')) . '-01 00:00:00';
|
||||
$begin = date('Y-m', strtotime('last month', strtotime(date('Y-m',time()) . '-01 00:00:01'))) . '-01 00:00:00';
|
||||
$end = date('Y-m', strtotime('this month')) . '-00 23:59:59';
|
||||
return array('begin' => $begin, 'end' => $end);
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ class report extends control
|
||||
$this->app->loadLang('bug');
|
||||
if($begin == 0)
|
||||
{
|
||||
$begin = date('Y-m-d', strtotime('last month'));
|
||||
$begin = date('Y-m-d', strtotime('last month', strtotime(date('Y-m',time()) . '-01 00:00:01')));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user