We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b898067 commit c26f62dCopy full SHA for c26f62d
src/common/utils/query/parse-date.util.ts
@@ -1,7 +1,7 @@
1
import { DateTime } from 'luxon';
2
3
export const normalizeDate = (dateString: string) => {
4
- const dateTime = DateTime.fromFormat(dateString, 'dd.MM.yyyy HH.mm.ss');
+ const dateTime = DateTime.fromFormat(dateString, 'dd.MM.yyyy');
5
if (!dateTime.isValid) {
6
throw new Error('Invalid date format');
7
}
0 commit comments