diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-27 05:48:22 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-27 05:48:22 -0700 |
commit | 0ca22cf6e2bd80247520f7c1f83535f8de5fed0a (patch) | |
tree | 2a3467c6b7e98dd1c13e2930893a378afb4d007a /lib/util.php | |
parent | 48d671ac39de0ebfd36858d784d3066ecbb89c10 (diff) |
a memcached_dataobject class for saving sessions
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 7 |
1 files changed, 6 insertions, 1 deletions
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) |