fix displayed dates to be in utc

This commit is contained in:
2021-04-16 23:11:08 -04:00
parent f07c4c8326
commit 9b29c3d1ad
4 changed files with 10 additions and 3 deletions

View File

@@ -28,6 +28,13 @@ module.exports = function(eleventyConfig) {
return Math.max(1, Math.floor(textOnly.length / readingSpeedPerMin))
})
// get proper date in utc
eleventyConfig.addFilter('realDate', (value) => {
const actualDate = value;
actualDate.setDate(value.getDate() + 1);
return actualDate;
})
// Enable us to iterate over all the tags, excluding posts and all
eleventyConfig.addCollection('tagList', collection => {
const tagsSet = new Set()