Skip to content

Commit c26f62d

Browse files
committed
fix: not falide date
1 parent b898067 commit c26f62d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils/query/parse-date.util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { DateTime } from 'luxon';
22

33
export const normalizeDate = (dateString: string) => {
4-
const dateTime = DateTime.fromFormat(dateString, 'dd.MM.yyyy HH.mm.ss');
4+
const dateTime = DateTime.fromFormat(dateString, 'dd.MM.yyyy');
55
if (!dateTime.isValid) {
66
throw new Error('Invalid date format');
77
}

0 commit comments

Comments
 (0)