summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-04-25 07:10:05 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-04-25 07:10:05 (GMT)
commit5dee600ef7f60eae11c06b3c04e88a4582bcfdd6 (patch)
tree63723f6d735b7bcaa3010cf6d89f3bf55ccd0ff7
parentd2440636d44761095b55d89e89d866a259115938 (diff)
downloadkolab-freebusy-5dee600ef7f60eae11c06b3c04e88a4582bcfdd6.tar.gz
Improve Exchange 2010 format converter output
-rw-r--r--lib/Kolab/FreeBusy/FormatExchange2010.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Kolab/FreeBusy/FormatExchange2010.php b/lib/Kolab/FreeBusy/FormatExchange2010.php
index 8aec7e4..8534df2 100644
--- a/lib/Kolab/FreeBusy/FormatExchange2010.php
+++ b/lib/Kolab/FreeBusy/FormatExchange2010.php
@@ -39,15 +39,17 @@ class FormatExchange2010 extends Format
// feed the calendar object into the free/busy generator
// we must specify a start and end date, because recurring events are expanded. nice!
+ $utc = new \DateTimezone('UTC');
$fbgen = new FreeBusyGenerator(
- new \DateTime('now - 8 weeks'),
- new \DateTime('now + 16 weeks'),
+ new \DateTime('now - 8 weeks 00:00:00', $utc),
+ new \DateTime('now + 16 weeks 00:00:00', $utc),
$calendar
);
// get the freebusy report
$freebusy = $fbgen->getResult();
- $freebusy->PRODID->value = '-//kolab.org//NONSGML Kolab Server 3//EN';
+ $freebusy->PRODID = '-//kolab.org//NONSGML Kolab Server 3//EN';
+ $freebusy->METHOD = 'PUBLISH';
// serialize to VCALENDAR format
return $freebusy->serialize();