From 2bf5fa925ccdbf6b4e1b10761976104e399ec854 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Thu, 17 Jun 2021 18:26:25 +0200 Subject: [PATCH] Use time formatter to respect timezone instead of GMT (#354) --- source/plugins/core/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugins/core/index.mjs b/source/plugins/core/index.mjs index e60e0cf3..a0b4c3b4 100644 --- a/source/plugins/core/index.mjs +++ b/source/plugins/core/index.mjs @@ -112,7 +112,7 @@ export default async function({login, q}, {conf, data, rest, graphql, plugins, q data.meta = { version:conf.package.version, author:conf.package.author, - generated:new Date().toGMTString().replace(/GMT$/g, "").trim() + generated:imports.format.date(new Date(), {dateStyle:"short", timeStyle:"short"}) } //Debug flags