mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Fixed date query for MySQL.
This commit is contained in:
parent
34bdea8a4f
commit
07d276106e
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ export function getDateQuery(field, unit, timezone) {
|
|||
if (timezone) {
|
||||
const tz = moment.tz(timezone).format('Z');
|
||||
|
||||
return `date_format(convert_tz(${field},'+00:00','${tz}', '${MYSQL_DATE_FORMATS[unit]}')`;
|
||||
return `date_format(convert_tz(${field},'+00:00','${tz}'), '${MYSQL_DATE_FORMATS[unit]}')`;
|
||||
}
|
||||
|
||||
return `${field}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue