summaryrefslogtreecommitdiff
path: root/classes/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-01 23:07:20 +0300
committerAndrew Dolgov <[email protected]>2021-03-01 23:07:20 +0300
commit031ee47a3e3de0d86fd5f951af3a136d85b387c5 (patch)
treea89b01d53a226541d7219c9610da5441b9311277 /classes/db.php
parentb150e46a526a18f055ba0b67671c7704f45c0f8f (diff)
don't try to pass string literal NOW() to ORM as a timestamp
Diffstat (limited to 'classes/db.php')
-rwxr-xr-xclasses/db.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/db.php b/classes/db.php
index a30ffad31..008275bca 100755
--- a/classes/db.php
+++ b/classes/db.php
@@ -16,6 +16,10 @@ class Db
ORM::configure('return_result_sets', true);
}
+ static function NOW() {
+ return date("Y-m-d H:i:s", time());
+ }
+
private function __clone() {
//
}