Create core/date.js

This commit is contained in:
Aleksandr Statciuk 2022-08-15 02:22:31 +03:00
parent 2b84b126c9
commit 2fef0866db
2 changed files with 13 additions and 0 deletions

12
scripts/core/date.js Normal file
View file

@ -0,0 +1,12 @@
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
dayjs.extend(utc)
const date = {}
date.utc = d => {
return dayjs.utc(d)
}
module.exports = date