Skip to content

Commit 07d2761

Browse files
committed
Fixed date query for MySQL.
1 parent 34bdea8 commit 07d2761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/queries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function getDateQuery(field, unit, timezone) {
2828
if (timezone) {
2929
const tz = moment.tz(timezone).format('Z');
3030

31-
return `date_format(convert_tz(${field},'+00:00','${tz}', '${MYSQL_DATE_FORMATS[unit]}')`;
31+
return `date_format(convert_tz(${field},'+00:00','${tz}'), '${MYSQL_DATE_FORMATS[unit]}')`;
3232
}
3333

3434
return `${field}`;

0 commit comments

Comments
 (0)