From d984bb0c21fc9234e1d257bde3445c3a9234126b Mon Sep 17 00:00:00 2001 From: Jean Baptiste Noblot Date: Mon, 31 Dec 2018 11:07:23 +0100 Subject: [PATCH] Add some fields for automatic cast to DateTime I add 5 fields because they exists on Workplace by Facebook GraphAPI https://developers.facebook.com/docs/workplace/reference/graph-api/member left_time is for /{group_id}/former_members --- src/Facebook/GraphNodes/GraphNode.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Facebook/GraphNodes/GraphNode.php b/src/Facebook/GraphNodes/GraphNode.php index a81c47b7b..fecd51474 100644 --- a/src/Facebook/GraphNodes/GraphNode.php +++ b/src/Facebook/GraphNodes/GraphNode.php @@ -151,7 +151,12 @@ public function shouldCastAsDateTime($key) 'issued_at', 'expires_at', 'publish_time', - 'joined' + 'joined', + 'left_time', + 'seen_time', + 'start_date', + 'account_invite_time', + 'account_claim_time' ], true); }