Skip to content

Commit

Permalink
Dates now in UTC time
Browse files Browse the repository at this point in the history
  • Loading branch information
nyette committed Oct 26, 2020
1 parent 99f8574 commit 8cee5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module.exports = function (eleventyConfig) {
}
})
)

eleventyConfig.addFilter("dateReadable", (date) => dateFns.format(date, "dd MMM yyyy"));
// date.toUTCString() => "Fri, 02 Feb 1996 03:04:05 GMT"
eleventyConfig.addFilter("dateReadable", (date) => date.toUTCString().split(" ").slice(1, 4).join(" "));
eleventyConfig.addPassthroughCopy("./images");
eleventyConfig.addPassthroughCopy("./CNAME");
eleventyConfig.setDataDeepMerge(true);
Expand Down

0 comments on commit 8cee5da

Please sign in to comment.