Skip to content

Commit 5408b45

Browse files
authored
Fix crash on parseISO import from date-fns v3.x. Fixes #838 (#840)
1 parent b489dc9 commit 5408b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MTableCell/cellUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import parseISO from 'date-fns/parseISO';
2+
import { parseISO } from 'date-fns';
33

44
/* eslint-disable no-useless-escape */
55
export const isoDateRegex = /^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;

0 commit comments

Comments
 (0)