Fix date-and-time tooltips not showing the time

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-19 13:25:57 +02:00
parent 5b3957baca
commit 9edc4a129b
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ $this->addHelperFunction('timeAgo', function ($time, $timeOnly = false) {
}
return sprintf(
'<span class="time-ago" title="%s">%s</span>',
DateFormatter::formatDate($time),
DateFormatter::formatDateTime($time),
DateFormatter::timeAgo($time, $timeOnly)
);
});
@ -48,7 +48,7 @@ $this->addHelperFunction('timeSince', function ($time, $timeOnly = false) {
}
return sprintf(
'<span class="time-since" title="%s">%s</span>',
DateFormatter::formatDate($time),
DateFormatter::formatDateTime($time),
DateFormatter::timeSince($time, $timeOnly)
);
});
@ -59,7 +59,7 @@ $this->addHelperFunction('timeUntil', function ($time, $timeOnly = false) {
}
return sprintf(
'<span class="time-until" title="%s">%s</span>',
DateFormatter::formatDate($time),
DateFormatter::formatDateTime($time),
DateFormatter::timeUntil($time, $timeOnly)
);
});