JWTRefreshTokenBundle icon indicating copy to clipboard operation
JWTRefreshTokenBundle copied to clipboard

Problem with unix_time

Open dmorfav opened this issue 3 years ago • 2 comments

I use unix_time format for handle my objects of DateTime and i get this error when try to update token.

image

image

image

dmorfav avatar Mar 10 '21 21:03 dmorfav

Can you expand on what you mean regarding the unix_time format? DateTime objects should support comparison with the >= type operators.

Jayfrown avatar Apr 07 '22 09:04 Jayfrown

@dmorfav I suspect you're generating a unix timestamp and saving it as an integer in $this->valid, while that should be a DateTime object.

You can use DateTime::setTimestamp() and DateTime::getTimestamp() to convert back-and-forth if you want to keep using integer timestamp values in other places.

Jayfrown avatar Apr 08 '22 18:04 Jayfrown