From 80162794d89411e6d5dce9590d5a19b10b8e0158 Mon Sep 17 00:00:00 2001 From: mdean Date: Fri, 14 Dec 2001 03:42:17 +0000 Subject: [PATCH] Applied fix from Bradley Bell to enable epoch date usage. --- phpgwapi/inc/class.db_mssql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.db_mssql.inc.php b/phpgwapi/inc/class.db_mssql.inc.php index 5b60f7c597..4c7aa020ad 100644 --- a/phpgwapi/inc/class.db_mssql.inc.php +++ b/phpgwapi/inc/class.db_mssql.inc.php @@ -102,12 +102,12 @@ // I don't have access to M$-SQL, can someone finish these 2 functions ? (jengo) function to_timestamp($epoch) { - return False; + return date('Y-m-d H:i:s', $epoch); } function from_timestamp($timestamp) { - return False; + return strtotime($timestamp); } // public: perform a query with limited result set