Changeset View
Changeset View
Standalone View
Standalone View
lib/Kolab/FreeBusy/Utils.php
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | ) { | ||||
try { | try { | ||||
return new \DateTime($dtend, new \DateTimezone('UTC')); | return new \DateTime($dtend, new \DateTimezone('UTC')); | ||||
} | } | ||||
catch (Exception $e) { | catch (Exception $e) { | ||||
// ignore | // ignore | ||||
} | } | ||||
} | } | ||||
// Should probably be a setting. For now, do 8 weeks in the past | // Should probably be a setting. For now, do 16 weeks into the future | ||||
return new \DateTime('now + 16 weeks 00:00:00', new \DateTimezone('UTC')); | return new \DateTime('now + 16 weeks 00:00:00', new \DateTimezone('UTC')); | ||||
} | } | ||||
/** | /** | ||||
* Returns an apparent empty Free/Busy list for the given user | * Returns an apparent empty Free/Busy list for the given user | ||||
*/ | */ | ||||
public static function dummyVFreebusy($user) | public static function dummyVFreebusy($user) | ||||
{ | { | ||||
Show All 20 Lines |