Skip to content

Commit

Permalink
We may want to add extra later; future proof
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Jan 13, 2015
1 parent be35684 commit d6c0f14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/JMBTechnologyLimited/RRuleUnravel/ICalData.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function addExDateByString($exdtval, $exdtparam = "") {

foreach(explode(",",$exdtval) as $exdtvalBit) {
if ($exdtvalBit) {
$this->excluded[] = new \DateTime($exdtvalBit, $timezone);
$this->excluded[] = array('datetime'=>new \DateTime($exdtvalBit, $timezone));
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/JMBTechnologyLimited/RRuleUnravel/Unraveler.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,12 @@ public function stepByDayMonthlyPeriod() {
}

protected function addResult(\DateTime $start, \DateTime $end) {

foreach($this->icalDataUnravelling->getICalData()->getExcluded() as $excluded) {
if ($start->getTimezone()->getName() != $excluded->getTimezone()->getName()) {
if ($start->getTimezone()->getName() != $excluded['datetime']->getTimezone()->getName()) {
// TODOD
} else {
if ($excluded->format("c") == $start->format("c")) {
if ($excluded['datetime']->format("c") == $start->format("c")) {
return;
}
}
Expand Down

0 comments on commit d6c0f14

Please sign in to comment.