-
-
Notifications
You must be signed in to change notification settings - Fork 150
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 attempt for Google and "All day". #192
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a great fix! Thank you a lot for your work on this, @vever001!
I have one minor note, please take a look.
@@ -35,4 +35,12 @@ public function it_correctly_generates_all_day_events_by_dates(): void | |||
$this->generator()->generate($this->createEventMultipleDaysViaStartEndWithTimezoneLink()) | |||
); | |||
} | |||
|
|||
/** @test */ | |||
public function it_correctly_generates_all_day_events_by_dates_diff_tz(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having this test is beneficial for all generators. How about moving it to the GeneratorTestContract
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed!
Maybe also moving the ones I added as well?
} | ||
|
||
$from = (clone $fromDate)->modify('midnight'); | ||
$from = (clone $fromDate); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With my old code, we're removing the hours/days portion. I guess this probably wasn't required and it only was done for non UTC dates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome to see all the activity here in this repo :)
Good job all!
Failing test looks fine as well, just needs a snapshot update |
Thanks for the feedback. |
Yea, it's a shame we can't test them again the provider itself. |
Thanks @vever001 and @atymic |
Hi guys, I'm looking forward for the merge :) |
Hey @vever001! Is it ready to be reviewed? |
Hi @alies-dev, sure please do :) -- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vever001
Great! It can be improved even more, but I believe the PR in it's current shape is still an improvement and thus we can merge it! Thank you for your amazing work!
Context and Purposes
Follow up of #184 and comment #184 (comment)