|
@@ 689-693 (lines=5) @@
|
| 686 |
|
if (strpos($stat_time, '~') !== false) { |
| 687 |
|
$cond = []; |
| 688 |
|
$sections = explode('~', $stat_time); |
| 689 |
|
if ($sections[0]) { |
| 690 |
|
$cond['$gte'] = strtotime($sections[0]); |
| 691 |
|
$start_stat_time = max([ $start_stat_time, $cond['$gte'] ]); |
| 692 |
|
} |
| 693 |
|
if ($sections[1]) { |
| 694 |
|
$cond['$lte'] = strtotime($sections[1] . ' 23:59:59'); |
| 695 |
|
$end_stat_time = min([ $end_stat_time, $cond['$lte'] ]); |
| 696 |
|
} |
|
@@ 693-697 (lines=5) @@
|
| 690 |
|
$cond['$gte'] = strtotime($sections[0]); |
| 691 |
|
$start_stat_time = max([ $start_stat_time, $cond['$gte'] ]); |
| 692 |
|
} |
| 693 |
|
if ($sections[1]) { |
| 694 |
|
$cond['$lte'] = strtotime($sections[1] . ' 23:59:59'); |
| 695 |
|
$end_stat_time = min([ $end_stat_time, $cond['$lte'] ]); |
| 696 |
|
} |
| 697 |
|
if ($cond) { |
| 698 |
|
$or[] = [ 'created_at' => $cond ]; |
| 699 |
|
$or[] = [ 'resolved_at' => $cond ]; |
| 700 |
|
$or[] = [ 'closed_at' => $cond ]; |