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

View File

@ -11,3 +11,4 @@ exports.markdown = require('./markdown')
exports.api = require('./api')
exports.id = require('./id')
exports.m3u = require('./m3u')
exports.date = require('./date')