We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 525efa9 commit 32b6f78Copy full SHA for 32b6f78
src/Jwt/Jwt.php
@@ -54,7 +54,7 @@ public function issuedBy($value)
54
*/
55
public function issuedAt(DateTimeInterface $value)
56
{
57
- $this->payload['iat'] = $value->format('U');
+ $this->payload['iat'] = $value->getTimestamp();
58
return $this;
59
}
60
@@ -64,7 +64,7 @@ public function issuedAt(DateTimeInterface $value)
64
65
public function expiresAt(DateTimeInterface $value)
66
67
- $this->payload['exp'] = $value->format('U');
+ $this->payload['exp'] = $value->getTimestamp();
68
69
70
0 commit comments