summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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",