Skip to content

Problem with events startdate and enddate different month #25

@dani-calderon

Description

@dani-calderon

We have a problem when startdate of an event and enddate have different month, the event is saved with one day less.
In order to solve it, we have changed the line 169 of Eventitemizer.php, instead this:

$dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, $this->event->getEndDate());

to this:

$dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, new \DateTime($this->event->getEndDate()->format("Y-n-j 23:59:59")));

With that the problem is solved, is it wrong??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions