Reformatted files with biome.

This commit is contained in:
Mike Cao 2025-11-22 22:42:42 -08:00
parent d51f0641a6
commit fa8d8055df
558 changed files with 2108 additions and 2379 deletions

View file

@ -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());
}