Update utils.js

This commit is contained in:
Aleksandr Statciuk 2022-01-31 05:47:56 +03:00
parent 1131b43cd8
commit 63b2e7dd2d
1 changed files with 3 additions and 1 deletions

View File

@ -259,7 +259,9 @@ utils.getRequestUrl = async function (item, config) {
return config.url
}
utils.getUTCDate = function () {
utils.getUTCDate = function (d = null) {
if (typeof d === 'string') return dayjs.utc(d).startOf('d')
return dayjs.utc().startOf('d')
}