Another fix for dates when using addMonth()
This commit is contained in:
@@ -172,7 +172,7 @@ class Adsl extends ServiceType implements ServiceItem,ServiceUsage
|
||||
->where('date','>=',$start->format('Y-m-d'))
|
||||
->where('date','<=',$maxdate->date->format('Y-m-d'))
|
||||
->get()->groupBy(function($item) {
|
||||
return sprintf('%s-%s',$item->trafficMonthStart->format('M-d'),$item->trafficMonthEnd->format('M-d'));
|
||||
return sprintf('%s->%s',$item->trafficMonthStart->format('d M'),$item->trafficMonthEnd->format('d M'));
|
||||
}) as $key => $o) {
|
||||
$result->put($key,$o->sum('total'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user