소스 검색

Update NotificationTransformer

Daniel Supernault 5 년 전
부모
커밋
68e09477d0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Transformer/Api/Mastodon/v1/NotificationTransformer.php

+ 1 - 1
app/Transformer/Api/Mastodon/v1/NotificationTransformer.php

@@ -20,7 +20,7 @@ class NotificationTransformer extends Fractal\TransformerAbstract
 		return [
 			'id'       		=> (string) $notification->id,
 			'type'       	=> $this->replaceTypeVerb($notification->action),
-			'created_at' 	=> (string) $notification->created_at->format('c'),
+			'created_at' 	=> (string) $notification->created_at->toIso8601ZuluString(),
 		];
 	}