mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
refactor: timezone conversion in lib/utils/date.js (#7438)
This commit is contained in:
4
lib/utils/parse-date.js
Normal file
4
lib/utils/parse-date.js
Normal file
@@ -0,0 +1,4 @@
|
||||
const dayjs = require("dayjs");
|
||||
dayjs.extend(require('dayjs/plugin/customParseFormat'));
|
||||
|
||||
module.exports = (date, ...options) => dayjs(date, ...options).toDate();
|
||||
Reference in New Issue
Block a user