fix range

This commit is contained in:
2025-12-03 02:48:34 -03:00
parent 0747ac84f4
commit 4e8f0321a2
5 changed files with 12 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
import type { Route } from './+types/route'
import { DateTime } from 'luxon'
import { CalendarIcon, PlusCircleIcon, PlusIcon } from 'lucide-react'
import { MeiliSearchFilterBuilder } from 'meilisearch-helper'
import { Suspense, useState } from 'react'
@@ -226,12 +227,11 @@ function useRangeParams() {
}
const [rangeField, from_] = from.split(':')
return {
rangeField,
dateRange: {
from: new Date(from_),
to: new Date(to)
from: DateTime.fromISO(from_).toJSDate(),
to: DateTime.fromISO(to).toJSDate()
}
}
}