From add783a926682ef8df87a2bed3fd61376ccb4eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Tue, 4 Jul 2023 05:14:26 +0000 Subject: [PATCH] * Format date. --- module/block/zen.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/block/zen.php b/module/block/zen.php index 0e70839c56..dca0f2b608 100644 --- a/module/block/zen.php +++ b/module/block/zen.php @@ -795,7 +795,7 @@ class blockZen extends block ->where('deleted')->eq('0') ->andWhere('product')->in($productIdList) ->andWhere('type')->eq('story') - ->andWhere('openedDate')->ge(date('Y-m', strtotime('-5 month'))) + ->andWhere('openedDate')->ge(date('Y-m-01', strtotime('-5 month'))) ->groupBy('date, product') ->fetchGroup('date', 'product'); @@ -815,7 +815,7 @@ class blockZen extends block $newPlan = $this->dao->select('*')->from(TABLE_PRODUCTPLAN) ->where('deleted')->eq('0') ->andWhere('product')->in($productIdList) - ->andWhere('begin')->gt(date('Y-m')) + ->andWhere('begin')->ge(date('Y-m-01')) ->andWhere('status')->eq('wait') ->orderBy('begin_desc') ->fetchGroup('product', 'product'); @@ -836,7 +836,7 @@ class blockZen extends block $newRelease = $this->dao->select('*')->from(TABLE_RELEASE) ->where('deleted')->eq('0') ->andWhere('product')->in($productIdList) - ->andWhere('date')->lt(date('Y-m')) + ->andWhere('date')->lt(date('Y-m-01')) ->orderBy('date_asc') ->fetchGroup('product', 'product');