From 500628e418a1e282ac401cecc6786b95b1a51b72 Mon Sep 17 00:00:00 2001 From: s-nakajima Date: Fri, 3 Oct 2025 14:30:37 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20rss=E3=81=8C=E6=97=A5=E6=9C=AC?= =?UTF-8?q?=E6=99=82=E9=96=93=E3=81=A7=E5=87=BA=E5=8A=9B=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AB=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=8C=E3=81=8A=E3=81=8B=E3=81=97=E3=81=8F=E3=81=AA?= =?UTF-8?q?=E3=82=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 下記のような場合、10/3 2:01で表示されてしまう。 ``` [事前登録制] 10/28 (火) Mendeley 利用講習会 Thu, 02 Oct 2025 17:01:58 +0900 ``` https://www.kyokyo-u.ac.jp/library/rss.xml --- Model/RssReaderItem.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Model/RssReaderItem.php b/Model/RssReaderItem.php index ffcef8e..6ff0cff 100644 --- a/Model/RssReaderItem.php +++ b/Model/RssReaderItem.php @@ -208,6 +208,8 @@ public function serializeXmlToArray($url) { foreach ($items as $item) { $date = new DateTime(Hash::get($item, $dateKey, 'now')); + $date->setTimezone(new DateTimeZone('UTC')); + $summary = Hash::get($item, $summaryKey, ''); if (is_array($summary) && isset($summary['@'])) { $summary = $summary['@']; From 1b9b0f5709050080126fe02973b51e3ca707ce48 Mon Sep 17 00:00:00 2001 From: s-nakajima Date: Fri, 3 Oct 2025 14:51:09 +0900 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20test=E3=82=92php7.4,mysql8.0=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6da4321..9c0a5b1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,8 +30,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ '7.1', '7.2', '7.3', '7.4' ] - mysql: [ '5.7', '8.0' ] + php: [ '7.4' ] + mysql: ['8.0' ] env: NC3_BUILD_DIR: "/opt/nc3"