Datetime representation aligned for microformats2

Read more at http://microformats.org/

Also, tooltip text on time representation for humans has been improved.
Unfortunately no standardised representation (like "RFC850") had 4-digit years.
This commit is contained in:
Mikael Nordfeldth
2014-04-28 17:45:21 +02:00
parent 5fd6053220
commit b0cae37b0f
4 changed files with 14 additions and 9 deletions

View File

@@ -99,9 +99,10 @@ class GroupMessageListItem extends Widget
$this->out->elementStart('a', array('rel' => 'bookmark',
'class' => 'timestamp',
'href' => $this->gm->url));
$dt = common_date_iso8601($this->gm->created);
$this->out->element('abbr', array('class' => 'published',
'title' => $dt),
$this->out->element('time', array('class' => 'dt-published',
'datetime' => common_date_iso8601($this->gm->created),
// TRANS: Timestamp title (tooltip text) for NoticeListItem
'title' => common_exact_date($this->gm->created)),
common_date_string($this->gm->created));
$this->out->elementEnd('a');
$this->out->elementEnd('div');