concrete/src/Foundation/Repetition/AbstractRepetition.php
protected function dateDiffNoDST(\DateTime $from, \DateTime $to)
    {
        $fromUTC = new \DateTime($from->format('Y-m-d\TH:i:s+00:00'));
        $toUTC = new \DateTime($to->format('Y-m-d\TH:i:s+00:00'));

        return $fromUTC->diff($toUTC);
    }
protected function dateDiffNoDST(\DateTime $from, \DateTime $to)
    {
        $fromUTC = new \DateTime($from->format('Y-m-d\TH:i:s+00:00'));
        $toUTC = new \DateTime($to->format('Y-m-d\TH:i:s+00:00'));

        return $fromUTC->diff($toUTC);
    }
protected function dateDiffNoDST ( \ DateTime $ from , \ DateTime $ to ) { $ fromUTC = new \ DateTime ( $ from -> format ( 'Y-m-d\TH:i:s+00:00' ) ) ; $ toUTC = new \ DateTime ( $ to -> format ( 'Y-m-d\TH:i:s+00:00' ) ) ; return $ fromUTC -> diff ( $ toUTC ) ; }
Returns the difference between two DateTime objects without considering DST changes.

@param \DateTime $from
@param \DateTime $to

@return \DateInterval
Returns the difference between two DateTime objects without considering DST changes .