|
|
@@ -403,11 +403,11 @@ class SiteController extends BaseController
|
|
|
for ($y = $yearStart; $y <= $yearEnd; $y++) {
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
// 月初
|
|
|
- $date = "{$y}-{$i}-01 00:00:00";
|
|
|
- $result[] = strtotime($date);
|
|
|
- // 月底
|
|
|
-// $date = date('Y-m-t', strtotime("{$y}-{$i}")) . ' 23:59:59';
|
|
|
+// $date = "{$y}-{$i}-01 00:00:00";
|
|
|
// $result[] = strtotime($date);
|
|
|
+ // 月底
|
|
|
+ $date = date('Y-m-t', strtotime("{$y}-{$i}")) . ' 23:59:59';
|
|
|
+ $result[] = strtotime($date);
|
|
|
}
|
|
|
}
|
|
|
|