We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb5042 commit 61ea429Copy full SHA for 61ea429
src/utils/polyfillDateFormat.js
@@ -3,7 +3,7 @@ import isString from './isString';
3
export default function polyfillDateFormat(variable) {
4
if (isString(variable)) {
5
// replace dashes with slashes for IE and Safari support
6
- const response = variable.replace(/-/g, '/');
+ const response = variable.replace(/(.*)-(.*)-(.*) (.*)/g, '$1/$2/$3 $4');
7
return response;
8
}
9
0 commit comments