Skip to content

Commit 61ea429

Browse files
committed
Fix date format polyfill
1 parent 7fb5042 commit 61ea429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/polyfillDateFormat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import isString from './isString';
33
export default function polyfillDateFormat(variable) {
44
if (isString(variable)) {
55
// replace dashes with slashes for IE and Safari support
6-
const response = variable.replace(/-/g, '/');
6+
const response = variable.replace(/(.*)-(.*)-(.*) (.*)/g, '$1/$2/$3 $4');
77
return response;
88
}
99

0 commit comments

Comments
 (0)