xml date fix

master
Nick Novak 2019-01-18 11:25:36 -05:00
parent d0c924e963
commit 641d9b26e0
1 changed files with 1 additions and 1 deletions

View File

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