|
@@ -9,7 +9,7 @@
|
|
* @returns {string | null}
|
|
* @returns {string | null}
|
|
*/
|
|
*/
|
|
export function parseTime(time, cFormat) {
|
|
export function parseTime(time, cFormat) {
|
|
- if (arguments.length === 0) {
|
|
|
|
|
|
+ if (arguments.length === 0 || !time) {
|
|
return null
|
|
return null
|
|
}
|
|
}
|
|
const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
|
|
const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
|