
11-25-2004, 04:37 AM
|
 |
|
|
Join Date: Jan 2003
Location: WagnerTech.net
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by akiy
Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.
After:
Code:
if($thisIgnore == 0){
I inserted:
Code:
$time = date("g:ia",
mktime(date("H",
$ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
date("i, s, m, d, Y", $ThisMSG['s_postime'])));
I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.
Hope that helps!
|
Where is this portion of code at? I'm unable to find it.
|