fix: Fixed timezone date parsing issue

This commit is contained in:
2025-08-21 01:07:35 -04:00
parent 42fb4ae576
commit 41d4174a09

View File

@ -3,6 +3,14 @@ import filtersPlugin from "./src/_config/filters.js";
/** @param {import("@11ty/eleventy").UserConfig} eleventyConfig */ /** @param {import("@11ty/eleventy").UserConfig} eleventyConfig */
export default async function(eleventyConfig) { export default async function(eleventyConfig) {
eleventyConfig.addDateParsing(function(dateValue) {
if (dateValue != null && typeof(dateValue) === 'object') {
dateValue = new Date(dateValue.getFullYear(), dateValue.getMonth(), dateValue.getDate() + 1);
}
return dateValue; // fallback
});
eleventyConfig.addPassthroughCopy( eleventyConfig.addPassthroughCopy(
{'./public/': '/'} {'./public/': '/'}
); );