mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Reformatted files with biome.
This commit is contained in:
parent
d51f0641a6
commit
fa8d8055df
558 changed files with 2108 additions and 2379 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import { getDateLocale } from '@/lib/lang';
|
||||
import { DateRange } from '@/lib/types';
|
||||
import {
|
||||
addDays,
|
||||
addHours,
|
||||
|
|
@ -40,6 +38,8 @@ import {
|
|||
subYears,
|
||||
} from 'date-fns';
|
||||
import { utcToZonedTime } from 'date-fns-tz';
|
||||
import { getDateLocale } from '@/lib/lang';
|
||||
import type { DateRange } from '@/lib/types';
|
||||
|
||||
export const TIME_UNIT = {
|
||||
minute: 'minute',
|
||||
|
|
@ -371,5 +371,5 @@ export function getMonthDateRangeValue(date: Date) {
|
|||
}
|
||||
|
||||
export function isInvalidDate(date: any) {
|
||||
return date instanceof Date && isNaN(date.getTime());
|
||||
return date instanceof Date && Number.isNaN(date.getTime());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue