We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4886f commit f28c737Copy full SHA for f28c737
src/utils/formatters.js
@@ -1,9 +1,9 @@
1
-import { isISOString, isDate } from 'js-var-type';
+import { isDateISOString, isDate } from 'js-var-type';
2
3
export function toDatetimeLocal(value) {
4
let date = value;
5
6
- if (isISOString(date)) {
+ if (isDateISOString(date)) {
7
date = new Date(date);
8
}
9
0 commit comments