- Fixed bug where some dates would produce SQL error in MySQL (#1487856)

release-0.6
alecpl 14 years ago
parent 0ea94769ee
commit 6491fbdbae

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fixed bug where some dates would produce SQL error in MySQL (#1487856)
- Added workaround for some IMAP server with broken STATUS response (#1487859)
- Fix bug where default_charset was not used for text messages (#1487836)
- Enable TinyMCE's contextmenu (#1487014)

@ -570,15 +570,7 @@ class rcube_mdb2
*/
function fromunixtime($timestamp)
{
switch($this->db_provider) {
case 'mysqli':
case 'mysql':
case 'sqlite':
return sprintf("FROM_UNIXTIME(%d)", $timestamp);
default:
return date("'Y-m-d H:i:s'", $timestamp);
}
return date("'Y-m-d H:i:s'", $timestamp);
}

Loading…
Cancel
Save