fix: Fixed timezone date parsing issue
This commit is contained in:
@ -3,6 +3,14 @@ import filtersPlugin from "./src/_config/filters.js";
|
||||
|
||||
/** @param {import("@11ty/eleventy").UserConfig} 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(
|
||||
{'./public/': '/'}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user