@@ 57-65 (lines=9) @@ | ||
54 | { |
|
55 | $_oIso8601Entity = $this->createIso8601Entity($sIso8601); |
|
56 | ||
57 | if (!empty($sTimeZone)) |
|
58 | { |
|
59 | $_oDateStart = new \DateTime(str_replace('Z', '', $_oIso8601Entity->sStartTime)); |
|
60 | $_oDateStart->setTimezone(new \DateTimeZone($sTimeZone)); |
|
61 | } |
|
62 | else |
|
63 | { |
|
64 | $_oDateStart = new \DateTime($_oIso8601Entity->sStartTime); |
|
65 | } |
|
66 | ||
67 | $_oDateInterval = new \DateInterval($_oIso8601Entity->sInterval); |
|
68 | $_oDataEnd = new \DateTime(); |
@@ 329-337 (lines=9) @@ | ||
326 | { |
|
327 | $_oIso8601Entity = $this->oDatePeriodFactory->createIso8601Entity($sIso8601String); |
|
328 | ||
329 | if (!empty($sTimeZone)) |
|
330 | { |
|
331 | $_oDateTime = new \DateTime(str_replace('Z', '', $_oIso8601Entity->sStartTime)); |
|
332 | $_oDateTime->setTimezone(new \DateTimeZone($sTimeZone)); |
|
333 | } |
|
334 | else |
|
335 | { |
|
336 | $_oDateTime = new \DateTime($_oIso8601Entity->sStartTime); |
|
337 | } |
|
338 | ||
339 | return $_oDateTime; |
|
340 | } |