|
...
|
...
|
@@ -126,7 +126,7 @@ class countProject extends Command |
|
|
|
*/
|
|
|
|
public function getStartAndEndOfMonth($month) {
|
|
|
|
// 创建指定月份的 DateTime 对象
|
|
|
|
$start = new DateTime($month . '-01'); // 月份的第一天
|
|
|
|
$start = new \DateTime($month . '-01'); // 月份的第一天
|
|
|
|
// 复制开始日期并获取该月的最后一天
|
|
|
|
$end = clone $start;
|
|
|
|
$end->modify('last day of this month'); // 修改为该月的最后一天
|
...
|
...
|
|