$notice = $profile->getCurrentNotice();
if (!empty($notice)) {
- $xs->element('updated', null, common_date_w3dtf($notice->created));
+ $xs->element('updated', null, self::utcDate($notice->created));
}
$user = User::staticGet('id', $profile->id);
Event::handle('EndActivityId', array(&$this, &$xs, $id));
}
- $published = common_date_w3dtf($this->created);
+ $published = self::utcDate($this->created);
if (Event::handle('StartActivityPublished', array(&$this, &$xs, &$published))) {
$xs->element('published', null, $published);
$tag->free();
return $tags;
}
+
+ static private function utcDate($dt)
+ {
+ $dateStr = date('d F Y H:i:s', strtotime($dt));
+ $d = new DateTime($dateStr, new DateTimeZone('UTC'));
+ return $d->format(DATE_W3C);
+ }
}