We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5127546 + f2efd38 commit 13fa0b9Copy full SHA for 13fa0b9
src/Facebook/Authentication/AccessTokenMetadata.php
@@ -382,7 +382,7 @@ private function convertTimestampToDateTime($timestamp)
382
private function castTimestampsToDateTime()
383
{
384
foreach (static::$dateProperties as $key) {
385
- if (isset($this->metadata[$key])) {
+ if (isset($this->metadata[$key]) && $this->metadata[$key] !== 0) {
386
$this->metadata[$key] = $this->convertTimestampToDateTime($this->metadata[$key]);
387
}
388
0 commit comments