diff options
author | alecpl <alec@alec.pl> | 2011-04-11 12:24:00 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-04-11 12:24:00 +0000 |
commit | d3105370870a8c51aaeb6a18f561311202da3356 (patch) | |
tree | 9b0d50549f35a44d7eb438bd7ad3dfa9ca72d263 /program/include/rcube_mdb2.php | |
parent | 382b8b1351e1a4598f04ab184cec803b96d7e4b7 (diff) |
- Apply fixes from trunk
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r-- | program/include/rcube_mdb2.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 3376a9e00..d7fd4e013 100644 --- a/program/include/rcube_mdb2.php +++ b/program/include/rcube_mdb2.php @@ -553,15 +553,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); } |