summaryrefslogtreecommitdiff
path: root/drivers/adodb-sqlite3.inc.php
diff options
context:
space:
mode:
authorJoe Bordes <joe@tsolucio.com>2023-10-18 09:28:25 +0200
committerGitHub <noreply@github.com>2023-10-18 09:28:25 +0200
commit4700171afa6c5f939e8d04b079331e207dea22ca (patch)
treecaeea408fd0afea76647475de8b6c423b253c1ff /drivers/adodb-sqlite3.inc.php
parentf86db42bded690064ac1b38e293b33c5a2d1c313 (diff)
downloadadodb-4700171afa6c5f939e8d04b079331e207dea22ca.tar.gz
adodb-4700171afa6c5f939e8d04b079331e207dea22ca.tar.bz2
adodb-4700171afa6c5f939e8d04b079331e207dea22ca.zip
Remove remaining ADOdb date/time function calls
This is a follow-up on commit bffa42e206d758af3095b8a0bdbf3c3ad8fb5e51. Following removal of adodb-time library, some function calls were not cleaned up in the code base. This fixes that. Includes a standalone test script to validate the functionality. Fixes #970 (PR #1002)
Diffstat (limited to 'drivers/adodb-sqlite3.inc.php')
-rw-r--r--drivers/adodb-sqlite3.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/adodb-sqlite3.inc.php b/drivers/adodb-sqlite3.inc.php
index 8141af6e..0cceafb1 100644
--- a/drivers/adodb-sqlite3.inc.php
+++ b/drivers/adodb-sqlite3.inc.php
@@ -304,13 +304,11 @@ class ADODB_sqlite3 extends ADOConnection {
$fmt = str_replace($fromChars,$toChars,$fmt);
$fmt = $this->qstr($fmt);
- return ($col) ? "adodb_date2($fmt,$col)" : "adodb_date($fmt)";
+ return ($col) ? "strftime($fmt,$col)" : "strftime($fmt)";
}
function _createFunctions()
{
- $this->_connectionID->createFunction('adodb_date', 'adodb_date', 1);
- $this->_connectionID->createFunction('adodb_date2', 'adodb_date2', 2);
}
/** @noinspection PhpUnusedParameterInspection */