mirror of
https://github.com/thelounge/thelounge.git
synced 2026-03-14 14:35:50 +01:00
Replace moment with dayjs
Drop in replacement, but smaller
This commit is contained in:
parent
7584f47c7d
commit
111c3665f9
8 changed files with 20 additions and 18 deletions
|
|
@ -50,7 +50,7 @@ const colors = require("chalk");
|
|||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const GraphQLClient = require("graphql-request").GraphQLClient;
|
||||
const moment = require("moment");
|
||||
const dayjs = require("dayjs");
|
||||
const semver = require("semver");
|
||||
const util = require("util");
|
||||
const log = require("../src/log");
|
||||
|
|
@ -836,7 +836,7 @@ async function generateChangelogEntry(changelog, targetVersion) {
|
|||
}
|
||||
|
||||
items.version = targetVersion;
|
||||
items.date = moment().format("YYYY-MM-DD");
|
||||
items.date = dayjs().format("YYYY-MM-DD");
|
||||
items.fullChangelogUrl = fullChangelogUrl(previousVersion, targetVersion);
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue