mirror of https://github.com/iptv-org/iptv
Create core/date.js
parent
2b84b126c9
commit
2fef0866db
@ -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
|
Loading…
Reference in New Issue