use Friendica\Model\Group;
use Friendica\Model\Profile;
use Friendica\Protocol\DFRN;
-use Friendica\Util\Temporal;
+use Friendica\Util\DateTimeFormat;
require_once 'include/event.php';
// The view mode part is similiar to /mod/events.php
if ($mode == 'view') {
- $thisyear = Temporal::localNow('Y');
- $thismonth = Temporal::localNow('m');
+ $thisyear = DateTimeFormat::localNow('Y');
+ $thismonth = DateTimeFormat::localNow('m');
if (!$y) {
$y = intval($thisyear);
}
}
}
- $start = Temporal::utc($start);
- $finish = Temporal::utc($finish);
+ $start = DateTimeFormat::utc($start);
+ $finish = DateTimeFormat::utc($finish);
- $adjust_start = Temporal::local($start);
- $adjust_finish = Temporal::local($finish);
+ $adjust_start = DateTimeFormat::local($start);
+ $adjust_finish = DateTimeFormat::local($finish);
// put the event parametes in an array so we can better transmit them
$event_params = [
if (DBM::is_result($r)) {
$r = sort_by_date($r);
foreach ($r as $rr) {
- $j = $rr['adjust'] ? Temporal::local($rr['start'], 'j') : Temporal::utc($rr['start'], 'j');
+ $j = $rr['adjust'] ? DateTimeFormat::local($rr['start'], 'j') : DateTimeFormat::utc($rr['start'], 'j');
if (!x($links, $j)) {
$links[$j] = System::baseUrl() . '/' . $a->cmd . '#link-' . $j;
}