Ver Fonte

Update AccountTransformer

Daniel Supernault há 5 anos atrás
pai
commit
f5e4e468a2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Transformer/Api/AccountTransformer.php

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

@@ -33,7 +33,7 @@ class AccountTransformer extends Fractal\TransformerAbstract
 			'website' => $profile->website,
 			'local' => (bool) $local,
 			'is_admin' => (bool) $is_admin,
-			'created_at' => $profile->created_at->timestamp,
+			'created_at' => $profile->created_at->toJSON(),
 			'header_bg' => $profile->header_bg
 		];
 	}