From 0ca22cf6e2bd80247520f7c1f83535f8de5fed0a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 27 Jun 2009 05:48:22 -0700 Subject: a memcached_dataobject class for saving sessions --- lib/util.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/util.php b/lib/util.php index e5a8eaea0..b3496a09e 100644 --- a/lib/util.php +++ b/lib/util.php @@ -828,7 +828,12 @@ function common_date_iso8601($dt) function common_sql_now() { - return strftime('%Y-%m-%d %H:%M:%S', time()); + return common_sql_date(time()); +} + +function common_sql_date($datetime) +{ + return strftime('%Y-%m-%d %H:%M:%S', $datetime); } function common_redirect($url, $code=307) -- cgit v1.2.3-54-g00ecf