Sfoglia il codice sorgente

Update NotificationTransformer

Daniel Supernault 6 anni fa
parent
commit
904a90a849
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Transformer/Api/NotificationTransformer.php

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

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