diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-08 06:33:50 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-08 06:33:50 +0000 |
| commit | daf588567fea95c414a2d67bd8c62b4aa34e104d (patch) | |
| tree | 4535c320be6054dec7df6e0b7f6fafdcd3bbb27c /roundcubemail/program | |
| parent | cc7401827a0e3345c83db7756b6748d0042fc176 (diff) | |
- Fixed bug where some dates would produce SQL error in MySQL (#1487856)
git-svn-id: https://svn.roundcube.net/trunk@4635 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_mdb2.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php index 85a70cad3..36a595098 100644 --- a/roundcubemail/program/include/rcube_mdb2.php +++ b/roundcubemail/program/include/rcube_mdb2.php @@ -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); } |
