update copyright filter

This commit is contained in:
Adora Laura Kalb 2023-06-04 20:23:36 +02:00
parent 08499ce961
commit 5ea2dbf283
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056

View file

@ -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 {