diff options
author | Andrew Dolgov <[email protected]> | 2021-03-01 23:07:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-01 23:07:20 +0300 |
commit | 031ee47a3e3de0d86fd5f951af3a136d85b387c5 (patch) | |
tree | a89b01d53a226541d7219c9610da5441b9311277 /classes/db.php | |
parent | b150e46a526a18f055ba0b67671c7704f45c0f8f (diff) |
don't try to pass string literal NOW() to ORM as a timestamp
Diffstat (limited to 'classes/db.php')
-rwxr-xr-x | classes/db.php | 4 |
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() { // } |