summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-25 14:23:38 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-25 14:23:38 -0400
commitcba4b50e44c501b5f73ba91179a6c8424b81caa8 (patch)
treedcd03714ae3ece9a3cc2d7c40d9661a20e8c9b52 /lib
parent55b6e17ee1bcbf09be085a63b39534c7144547f2 (diff)
use common_sql_now() instead of DB_DataObject_Cast
darcs-hash:20080825182338-84dde-ec0edef9469b294b7e23945f1bc7d810da988ed7.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 87f97685c..efd86ad50 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -988,6 +988,10 @@ function common_date_iso8601($dt) {
return $d->format('c');
}
+function common_sql_now() {
+ return strftime('%Y-%m-%d %H:%M:%S', time());
+}
+
function common_redirect($url, $code=307) {
static $status = array(301 => "Moved Permanently",
302 => "Found",