Explorar o código

Update CollectionService, revert timestamp change

Daniel Supernault %!s(int64=2) %!d(string=hai) anos
pai
achega
eac3220ffd
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      app/Services/CollectionService.php

+ 4 - 4
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);