Revision: 1204
http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1204&view=rev
Author: kerphi
Date: 2007-11-03 09:04:33 -0700 (Sat, 03 Nov 2007)
Log Message:
-----------
Bug fix: the system timezone was ignored and the GMT date were used. (thanks to Bob Richardson)
Modified Paths:
--------------
trunk/src/commands/getnewmsg.class.php
Modified: trunk/src/commands/getnewmsg.class.php
===================================================================
--- trunk/src/commands/getnewmsg.class.php 2007-11-02 09:17:16 UTC (rev 1203)
+++ trunk/src/commands/getnewmsg.class.php 2007-11-03 16:04:33 UTC (rev 1204)
@@ -79,8 +79,8 @@
foreach ($data as $d)
{
$m_id = $d["id"];
- $m_date = gmdate($c->date_format, $d["timestamp"] + $c->time_offset);
- $m_time = gmdate($c->time_format, $d["timestamp"] + $c->time_offset);
+ $m_date = date($c->date_format, $d["timestamp"] + $c->time_offset);
+ $m_time = date($c->time_format, $d["timestamp"] + $c->time_offset);
$m_sender = $d["sender"];
$m_recipientid = $recipientid;
$m_cmd = $d["cmd"];
@@ -92,7 +92,7 @@
$m_recipientid,
$m_cmd,
$m_param,
- gmdate($c->date_format, time() + $c->time_offset) == $m_date ? 1 : 0, // posted today ?
+ date($c->date_format, time() + $c->time_offset) == $m_date ? 1 : 0, // posted today ?
$oldmsg ? 1 : 0); // is it a new message in the current session or is it a part of the history
$data_sent = true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|