summaryrefslogtreecommitdiff
path: root/program/include/rcube_mdb2.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-04-08 06:33:50 +0000
committeralecpl <alec@alec.pl>2011-04-08 06:33:50 +0000
commit6491fbdbae0a2a6e747e283bae0f511ce852c0e9 (patch)
treea4f099e1c0615ed7372bec02dda2ada6cafd1414 /program/include/rcube_mdb2.php
parent0ea94769ee2846a0a4d0ec5d55d3bd8d6241b24a (diff)
- Fixed bug where some dates would produce SQL error in MySQL (#1487856)
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r--program/include/rcube_mdb2.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php
index 85a70cad3..36a595098 100644
--- a/program/include/rcube_mdb2.php
+++ b/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);
}