We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2a5a15 commit d54cd25Copy full SHA for d54cd25
src/utils/index.js
@@ -19,6 +19,8 @@ export function parseTime(time, cFormat) {
19
} else {
20
if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
21
time = parseInt(time)
22
+ } else if (typeof time === 'string') {
23
+ time = time.replace(new RegExp(/-/gm), '/');
24
}
25
if ((typeof time === 'number') && (time.toString().length === 10)) {
26
time = time * 1000
0 commit comments