From 641d9b26e0b25860fb41462f99126d1f35db00ea Mon Sep 17 00:00:00 2001 From: Nick Novak Date: Fri, 18 Jan 2019 11:25:36 -0500 Subject: [PATCH] xml date fix --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index fa65db0..545b68f 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -15,7 +15,7 @@ module.exports = function(eleventyConfig) { // https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-date-string eleventyConfig.addFilter('htmlDateString', (dateObj) => { - return DateTime.fromJSDate(dateObj).toFormat('yyyy-LL-dd'); + return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat('yyyy-LL-dd'); }); // Get the first `n` elements of a collection.