@@ -67,7 +67,7 @@ public function report($user, $from, $to, $filterProjectId, $filterClientId, $fi
6767 }elseif ($ timegroup == 'month ' ) {
6868 $ selectFields []= "to_char(to_timestamp(start), 'YYYY-MM') as ftime " ;
6969 }else {
70- $ selectFields []= "start as ftime " ;
70+ $ selectFields []= "min( start) as ftime " ;
7171 }
7272 } else if ($ this ->dbengine == 'SQLITE ' ) {
7373 if ($ timegroup == 'week ' ) {
@@ -77,7 +77,7 @@ public function report($user, $from, $to, $filterProjectId, $filterClientId, $fi
7777 }elseif ($ timegroup == 'month ' ) {
7878 $ selectFields []= "strftime('%Y-%m', datetime(start, 'unixepoch')) as ftime " ;
7979 }else {
80- $ selectFields []= "start as ftime " ;
80+ $ selectFields []= "min( start) as ftime " ;
8181 }
8282 } else {
8383 if ($ timegroup == 'week ' ) {
@@ -87,7 +87,7 @@ public function report($user, $from, $to, $filterProjectId, $filterClientId, $fi
8787 }elseif ($ timegroup == 'month ' ) {
8888 $ selectFields []= "DATE_FORMAT(FROM_UNIXTIME(start),'%Y-%m') as ftime " ;
8989 }else {
90- $ selectFields []= "start as ftime " ;
90+ $ selectFields []= "min( start) as ftime " ;
9191 }
9292 }
9393
0 commit comments