Skip to content

Commit 13fa0b9

Browse files
committed
Merge pull request facebookarchive#502 from facebook/gFosco.expiresAt
Don't convert a 0 timestamp, to support non-expiring tokens.
2 parents 5127546 + f2efd38 commit 13fa0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Facebook/Authentication/AccessTokenMetadata.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ private function convertTimestampToDateTime($timestamp)
382382
private function castTimestampsToDateTime()
383383
{
384384
foreach (static::$dateProperties as $key) {
385-
if (isset($this->metadata[$key])) {
385+
if (isset($this->metadata[$key]) && $this->metadata[$key] !== 0) {
386386
$this->metadata[$key] = $this->convertTimestampToDateTime($this->metadata[$key]);
387387
}
388388
}

0 commit comments

Comments
 (0)