File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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
throw new BeforeValidException (
157
- 'Cannot handle token with nbf prior to ' . \date (DateTime::ISO8601 , (int ) $ payload ->nbf )
157
+ 'Cannot handle token with nbf prior to ' . \date (DateTime::ATOM , (int ) $ payload ->nbf )
158
158
);
159
159
}
160
160
@@ -163,7 +163,7 @@ public static function decode(
163
163
// correctly used the nbf claim).
164
164
if (!isset ($ payload ->nbf ) && isset ($ payload ->iat ) && floor ($ payload ->iat ) > ($ timestamp + static ::$ leeway )) {
165
165
throw new BeforeValidException (
166
- 'Cannot handle token with iat prior to ' . \date (DateTime::ISO8601 , (int ) $ payload ->iat )
166
+ 'Cannot handle token with iat prior to ' . \date (DateTime::ATOM , (int ) $ payload ->iat )
167
167
);
168
168
}
169
169
You can’t perform that action at this time.
0 commit comments