Skip to content

Commit 32b6f78

Browse files
authored
Update Jwt.php
1 parent 525efa9 commit 32b6f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jwt/Jwt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function issuedBy($value)
5454
*/
5555
public function issuedAt(DateTimeInterface $value)
5656
{
57-
$this->payload['iat'] = $value->format('U');
57+
$this->payload['iat'] = $value->getTimestamp();
5858
return $this;
5959
}
6060

@@ -64,7 +64,7 @@ public function issuedAt(DateTimeInterface $value)
6464
*/
6565
public function expiresAt(DateTimeInterface $value)
6666
{
67-
$this->payload['exp'] = $value->format('U');
67+
$this->payload['exp'] = $value->getTimestamp();
6868
return $this;
6969
}
7070

0 commit comments

Comments
 (0)