[Pkg-owncloud-commits] [php-sabre-vobject] 277/341: consider timezone of the timerange
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 54745a2c314226ca61c54d82ae437b5b985fc947
Author: Armin Hackmann <armin at fruux.com>
Date: Tue Jun 9 15:06:39 2015 +0200
consider timezone of the timerange
---
lib/Component/VEvent.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Component/VEvent.php b/lib/Component/VEvent.php
index 3b0d31d..114b95d 100644
--- a/lib/Component/VEvent.php
+++ b/lib/Component/VEvent.php
@@ -43,7 +43,7 @@ class VEvent extends VObject\Component {
}
- $effectiveStart = $this->DTSTART->getDateTime();
+ $effectiveStart = $this->DTSTART->getDateTime($start->getTimezone());
if (isset($this->DTEND)) {
// The DTEND property is considered non inclusive. So for a 3 day
@@ -52,7 +52,7 @@ class VEvent extends VObject\Component {
//
// See:
// http://tools.ietf.org/html/rfc5545#page-54
- $effectiveEnd = $this->DTEND->getDateTime();
+ $effectiveEnd = $this->DTEND->getDateTime($end->getTimezone());
if (!$this->DTEND->hasTime()) {
$effectiveEnd->modify('-1 second');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list