oauth2-server-php-docs icon indicating copy to clipboard operation
oauth2-server-php-docs copied to clipboard

access token expire time

Open ravvo opened this issue 11 years ago • 3 comments
trafficstars

in database expire time is inserted 4 hours back. if time is 16:20:43 then there time inserted 12:03:47. please explain me how its work?

ravvo avatar Oct 29 '14 11:10 ravvo

are you using doctrine?

On Wednesday, October 29, 2014, ravvo [email protected] wrote:

in database expire time is inserted 4 hours back. if time is 16:20:43 then there time inserted 12:03:47. please explain me how its work?

— Reply to this email directly or view it on GitHub https://github.com/bshaffer/oauth2-server-php-docs/issues/47.

Sincerely, Brent Shaffer @bshaffer http://twitter.com/bshaffer

bshaffer avatar Oct 30 '14 03:10 bshaffer

no i am not using doctrine.

ravvo avatar Oct 30 '14 05:10 ravvo

I think this is related to what I posted here https://github.com/bshaffer/oauth2-server-php-docs/issues/53

I believe it's because the dates in the database are saved without their timezone information. If you're getting expired tokens (that shouldn't have expired yet) you can try what I suggested in my post.

atams avatar Jan 17 '15 19:01 atams