1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-22 02:00:40 +00:00

Add <time>-Tag

This commit is contained in:
Tim Düsterhus 2011-12-05 21:14:14 +01:00
parent e35a6a2f04
commit 768c4f0066

View File

@ -87,7 +87,7 @@ class ChatMessage extends \wcf\data\DatabaseObject {
return \wcf\util\JSON::encode(array(
'formattedUsername' => $this->getFormattedUsername(),
'formattedMessage' => $this->getFormattedMessage(),
'formattedTime' => \wcf\util\DateUtil::format(\wcf\util\DateUtil::getDateTimeByTimestamp($this->time), 'H:i:s'),
'formattedTime' => '<time>'.\wcf\util\DateUtil::format(\wcf\util\DateUtil::getDateTimeByTimestamp($this->time), 'H:i:s').'</time>',
'sender' => $this->sender,
'username' => $this->getUsername(),
'time' => $this->time,