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

Fix isValidTimeZone under MacOS X #204

Merged
merged 1 commit into from
May 31, 2017
Merged

Fix isValidTimeZone under MacOS X #204

merged 1 commit into from
May 31, 2017

Conversation

AmiSMB
Copy link
Contributor

@AmiSMB AmiSMB commented May 31, 2017

On my MacOS X PHP 7.0.19 the call to date_default_timezone_get() returns etc/UTC but the isValidTimeZone function uses in_array to search for the timezone but as this is a string in_array does a case sensitive search which fails as PHP reports this timezone as etc/UTC.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 69.099% when pulling 86b7137 on AmiSMB:3.1 into 049bd33 on kevinkhill:3.1.

@kevinkhill
Copy link
Owner

Thank you for the fix. I don't have a Mac so I would have never known.

@kevinkhill kevinkhill merged commit c026c6a into kevinkhill:3.1 May 31, 2017
kevinkhill added a commit that referenced this pull request Jun 28, 2017
Fix isValidTimeZone under MacOS X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants