Skip to content
Snippets Groups Projects
Unverified Commit 3238ada6 authored by Alexander Kiselev's avatar Alexander Kiselev Committed by GitHub
Browse files

exclude feb date fix (#22238)

parent 4e2ed09f
Branches
Tags
No related merge requests found
......@@ -625,6 +625,7 @@ export const EXCLUDE_OPTIONS = {
[EXCLUDE_UNITS["months"]]: () => {
const now = moment()
.utc()
.date(1)
.hours(0)
.minutes(0)
.seconds(0)
......
......@@ -160,9 +160,11 @@ describe("parameters/utils/mbql", () => {
"!=",
["field", null, { "temporal-unit": "month-of-year" }],
date()
.date(1)
.month(1)
.format("YYYY-MM-DD"),
date()
.date(1)
.month(2)
.format("YYYY-MM-DD"),
]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment