Closes #56 Google calendar end date is before start date when allDay = true
Overview of changes files
Link.php: remove duplicate code and start to use $this->to for all-day events too. Add a new Link::createAllDay to create valid all-day Link instances. I didn't change another constructors for BC reasons.
GoogleGeneratorTest__it_can_generate_a_google_allDay_link__1.php: google requires to have 1-day diff for allDay events: it should be &dates=20180201/20180202, nor &dates=20180201/20180201
WebOutlook.php: fix a behavior for all-day events.
WebOutlookGeneratorTest__it_can_generate_a_web_outlook_allDay_link__1.php: don't use optional time and enddt param for all-day events
TestCase.php: use new API to create allDay events
IcsGeneratorTest__it_can_generate_an_ics_allDay_link__1.php: just a side-effect: ics format has UID that depends on start and end dates (in our case). For all-day events we started to use midnight (for $from) and +{X} days (for $to) modifications to make dates really all-day dates.
Closes #56 Google calendar end date is before start date when allDay = true
Overview of changes files
Link.php
: remove duplicate code and start to use$this->to
for all-day events too. Add a newLink::createAllDay
to create valid all-dayLink
instances. I didn't change another constructors for BC reasons.GoogleGeneratorTest__it_can_generate_a_google_allDay_link__1.php
: google requires to have 1-day diff for allDay events: it should be&dates=20180201/20180202
, nor&dates=20180201/20180201
WebOutlook.php
: fix a behavior for all-day events.WebOutlookGeneratorTest__it_can_generate_a_web_outlook_allDay_link__1.php
: don't use optional time andenddt
param for all-day eventsTestCase.php
: use new API to create allDay eventsIcsGeneratorTest__it_can_generate_an_ics_allDay_link__1.php
: just a side-effect: ics format has UID that depends on start and end dates (in our case). For all-day events we started to usemidnight
(for $from) and+{X} days
(for $to) modifications to make dates really all-day dates.