Applied fix from Bradley Bell to enable epoch date usage.

This commit is contained in:
mdean 2001-12-14 03:42:17 +00:00
parent 45468509d6
commit 80162794d8

View File

@ -102,12 +102,12 @@
// I don't have access to M$-SQL, can someone finish these 2 functions ? (jengo) // I don't have access to M$-SQL, can someone finish these 2 functions ? (jengo)
function to_timestamp($epoch) function to_timestamp($epoch)
{ {
return False; return date('Y-m-d H:i:s', $epoch);
} }
function from_timestamp($timestamp) function from_timestamp($timestamp)
{ {
return False; return strtotime($timestamp);
} }
// public: perform a query with limited result set // public: perform a query with limited result set