Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit ff0c33f

Browse files
getTimezone for GraphUser
Since 'timezone' is considered a core element of the User object (and I need it) I've included it in GraphUser
1 parent 9154dc7 commit ff0c33f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Facebook/GraphUser.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,13 @@ public function getLocation()
132132
return $this->getProperty('location', GraphLocation::className());
133133
}
134134

135+
/**
136+
* Returns the timezone for the user as a int if present.
137+
*
138+
* @return string|null
139+
*/
140+
public function getTimezone()
141+
{
142+
return $this->getProperty('timezone');
143+
}
135144
}

0 commit comments

Comments
 (0)