Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

OAuth2 expiration time is wrong, when using different timezone in MySQL #141

Open
Ivan-Prism opened this issue Oct 20, 2015 · 2 comments
Open

Comments

@Ivan-Prism
Copy link

Actually function strtotime is always returning time in UTC, because there isn't timezone defined. This make sense, but it's causing troubles with expiration in different timezones (GMT+X).

Question is , how to deal with it. I can set expiration time in config, but it took me long time to find the root cause of this.

@Ivan-Prism
Copy link
Author

My suggestion is to use native SQL function, instead of counting by PHP - which is much more simple imo.

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools; a new issue has been opened at laminas-api-tools/api-tools#44.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants