From 5ea2dbf283ea8385e01ed665d79247931e024e91 Mon Sep 17 00:00:00 2001 From: lauralani Date: Sun, 4 Jun 2023 20:23:36 +0200 Subject: [PATCH] update copyright filter --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 5133060..d4c4457 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -11,7 +11,7 @@ module.exports = function(eleventyConfig) { }); eleventyConfig.addFilter("copyrightyear", function(value) { - return DateTime.Now().toLocaleString({ year: 'numeric'}) + return DateTime.fromJSDate(value).toLocaleString({ year: 'numeric'}) }); return {