File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public static function decode(
154
154
// token can actually be used. If it's not yet that time, abort.
155
155
if (isset ($ payload ->nbf ) && floor ($ payload ->nbf ) > ($ timestamp + static ::$ leeway )) {
156
156
$ ex = new BeforeValidException (
157
- 'Cannot handle token with nbf prior to ' . \date (DateTime::ISO8601 , (int ) floor ($ payload ->nbf ))
157
+ 'Cannot handle token with nbf prior to ' . \date (DateTime::ATOM , (int ) floor ($ payload ->nbf ))
158
158
);
159
159
$ ex ->setPayload ($ payload );
160
160
throw $ ex ;
@@ -165,7 +165,7 @@ public static function decode(
165
165
// correctly used the nbf claim).
166
166
if (!isset ($ payload ->nbf ) && isset ($ payload ->iat ) && floor ($ payload ->iat ) > ($ timestamp + static ::$ leeway )) {
167
167
$ ex = new BeforeValidException (
168
- 'Cannot handle token with iat prior to ' . \date (DateTime::ISO8601 , (int ) floor ($ payload ->iat ))
168
+ 'Cannot handle token with iat prior to ' . \date (DateTime::ATOM , (int ) floor ($ payload ->iat ))
169
169
);
170
170
$ ex ->setPayload ($ payload );
171
171
throw $ ex ;
You can’t perform that action at this time.
0 commit comments