mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix range to be based on current time (#13701)
* Fix range to be based on current time * Parse using localtime for fields without timezone data on SQLite * Add tests * Parse test response to int * Refactor to options object * Read timestamps as UTC for Oracle Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -37,7 +37,7 @@ export function getColumn(
|
||||
throw new InvalidQueryException(`Invalid function specified "${functionName}"`);
|
||||
}
|
||||
|
||||
const result = fn[functionName as keyof typeof fn](table, columnName) as Knex.Raw;
|
||||
const result = fn[functionName as keyof typeof fn](table, columnName, { type }) as Knex.Raw;
|
||||
|
||||
if (alias) {
|
||||
return knex.raw(result + ' AS ??', [alias]);
|
||||
|
||||
Reference in New Issue
Block a user