bshaffer / oauth2-server-php-docs

documentation for the oauth2-server-php library
231 stars 148 forks source link

access token expire time #47

Open ravvo opened 9 years ago

ravvo commented 9 years ago

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?

bshaffer commented 9 years ago

are you using doctrine?

On Wednesday, October 29, 2014, ravvo notifications@github.com 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

ravvo commented 9 years ago

no i am not using doctrine.

Atams commented 9 years ago

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.