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 CreateFromTimeTest #2563

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

crhg
Copy link
Contributor

@crhg crhg commented Mar 10, 2022

In the test when timezone is specified, Carbon::now() is used to calculate the expected date. If the test is run in an environment that defaults to a timezone other than the 'Europe/London' specified in the test, the test may fail because the dates obtained will be different for some hours of the day.
Specifying the time zone when asking for the expected date solves this problem.

@kylekatarnls kylekatarnls added the details needed We do not have enough input to solve this issue label Mar 10, 2022
@kylekatarnls kylekatarnls removed the details needed We do not have enough input to solve this issue label Mar 10, 2022
@kylekatarnls kylekatarnls merged commit 78a4397 into briannesbitt:master Mar 10, 2022
@kylekatarnls kylekatarnls added this to the 2.58.0 milestone Mar 10, 2022
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.

2 participants