浏览代码

Update AccountTransformer

Daniel Supernault 5 年之前
父节点
当前提交
f5e4e468a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 		];
 	}