Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect time string when system timezone is not GMT #171

Open
jaclam1 opened this issue Nov 6, 2024 · 0 comments
Open

Incorrect time string when system timezone is not GMT #171

jaclam1 opened this issue Nov 6, 2024 · 0 comments

Comments

@jaclam1
Copy link

jaclam1 commented Nov 6, 2024

$date = date("D, d M Y G:i:s ").GlobalParameter::GMT;

When system time zone is not GMT, this line will return the local time string and attach a GMT suffix behind. API call will fail with "UNAUTHORIZED_USER" because of the "iat" field in JWT payload different from current time too much.

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

No branches or pull requests

1 participant