diff options
author | Frug <frugen@gmail.com> | 2013-11-08 14:52:00 -0500 |
---|---|---|
committer | Frug <frugen@gmail.com> | 2013-11-08 14:52:00 -0500 |
commit | 98f2d6d502d466e4da51fe67cbc3214f95d05afe (patch) | |
tree | 27d1d12654be2cfc771c93db5d96b49b53f8489f /chat/lib/class | |
parent | 9da21807c60679c6a511732bebebcf30b76c0106 (diff) | |
download | AJAX-Chat-98f2d6d502d466e4da51fe67cbc3214f95d05afe.zip AJAX-Chat-98f2d6d502d466e4da51fe67cbc3214f95d05afe.tar.gz AJAX-Chat-98f2d6d502d466e4da51fe67cbc3214f95d05afe.tar.bz2 |
use FROM_UNIXTIME instead of php date
Diffstat (limited to 'chat/lib/class')
-rw-r--r-- | chat/lib/class/AJAXChat.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chat/lib/class/AJAXChat.php b/chat/lib/class/AJAXChat.php index 3369a6b..6b1397a 100644 --- a/chat/lib/class/AJAXChat.php +++ b/chat/lib/class/AJAXChat.php @@ -1924,7 +1924,7 @@ class AJAXChat { ($this->getConfig('requestMessagesPriorChannelEnterList') && in_array($this->getChannel(), $this->getConfig('requestMessagesPriorChannelEnterList')))) {
$condition .= 'NOW() < DATE_ADD(dateTime, interval '.$this->getConfig('requestMessagesTimeDiff').' HOUR)';
} else {
- $condition .= 'dateTime >= \''.date('Y-m-d H:i:s', $this->getChannelEnterTimeStamp()).'\'';
+ $condition .= 'dateTime >= FROM_UNIXTIME(' . $this->getChannelEnterTimeStamp() . ')';
}
return $condition;
}
|