From eac3220ffd77b4abe422a4734da376ccad37619d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 1 Oct 2022 00:14:26 -0600 Subject: [PATCH] Update CollectionService, revert timestamp change --- app/Services/CollectionService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Services/CollectionService.php b/app/Services/CollectionService.php index 8960cdd13..288e1b7d1 100644 --- a/app/Services/CollectionService.php +++ b/app/Services/CollectionService.php @@ -84,8 +84,8 @@ class CollectionService 'description' => $collection->description, 'thumb' => url('/storage/no-preview.png'), 'url' => $collection->url(), - 'updated_at' => str_replace('+00:00', 'Z', $collection->updated_at->format(DATE_RFC3339_EXTENDED)), - 'published_at' => str_replace('+00:00', 'Z', $collection->published_at->format(DATE_RFC3339_EXTENDED)), + 'updated_at' => $collection->updated_at, + 'published_at' => $collection->published_at, ]; }); @@ -117,8 +117,8 @@ class CollectionService 'description' => $collection->description, 'thumb' => self::getThumb($id), 'url' => $collection->url(), - 'updated_at' => str_replace('+00:00', 'Z', $collection->updated_at->format(DATE_RFC3339_EXTENDED)), - 'published_at' => str_replace('+00:00', 'Z', $collection->published_at->format(DATE_RFC3339_EXTENDED)), + 'updated_at' => $collection->updated_at, + 'published_at' => $collection->published_at, ]; Cache::put(self::CACHE_KEY . 'get:' . $id, $res, 86400); $res['post_count'] = self::count($id);