mirror of
https://github.com/iptv-org/iptv.git
synced 2024-09-06 00:02:24 +02:00
13 lines
172 B
JavaScript
13 lines
172 B
JavaScript
|
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
|