summaryrefslogtreecommitdiff
path: root/drivers/adodb-sqlite3.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2025-07-21 13:31:18 +0200
committerDamien Regad <dregad@mantisbt.org>2025-08-18 18:52:58 +0200
commit07f0bd8f69357cbac5eb57061c3130e5843b8b20 (patch)
tree7da46ae431d59bce2428fcd05fc44fed327d38cb /drivers/adodb-sqlite3.inc.php
parent2664692f850daffd91113a4b70538e0a0dc7c641 (diff)
downloadadodb-07f0bd8f69357cbac5eb57061c3130e5843b8b20.tar.gz
adodb-07f0bd8f69357cbac5eb57061c3130e5843b8b20.tar.bz2
adodb-07f0bd8f69357cbac5eb57061c3130e5843b8b20.zip
Coding guidelines
Diffstat (limited to 'drivers/adodb-sqlite3.inc.php')
-rw-r--r--drivers/adodb-sqlite3.inc.php20
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/adodb-sqlite3.inc.php b/drivers/adodb-sqlite3.inc.php
index be4fac39..696e2990 100644
--- a/drivers/adodb-sqlite3.inc.php
+++ b/drivers/adodb-sqlite3.inc.php
@@ -400,17 +400,15 @@ class ADODB_sqlite3 extends ADOConnection {
*/
function sqlDate($fmt, $col=false)
{
- /*
- * In order to map the values correctly, we must ensure the proper
- * casing for certain fields
- * Y must be UC, because y is a 2 digit year
- * d must be LC, because D is 3 char day
- * A must be UC because a is non-portable am
- * Q must be UC because q means nothing
- */
- $fromChars = array('y','D','a','q');
- $toChars = array('Y','d','A','Q');
- $fmt = str_replace($fromChars,$toChars,$fmt);
+ // In order to map the values correctly, we must ensure the proper
+ // casing for certain fields:
+ // - Y must be UC, because y is a 2 digit year
+ // - d must be LC, because D is 3 char day
+ // - A must be UC because a is non-portable am
+ // - Q must be UC because q means nothing
+ $fromChars = array('y', 'D', 'a', 'q');
+ $toChars = array('Y', 'd', 'A', 'Q');
+ $fmt = str_replace($fromChars, $toChars, $fmt);
$fmt = $this->qstr($fmt);
return $col ? "adodb_date($fmt,$col)" : "adodb_date($fmt)";