fix time zone issue
This commit is contained in:
@ -52,8 +52,9 @@ export default function(eleventyConfig) {
|
||||
|
||||
/* Human-readable dates */
|
||||
eleventyConfig.addFilter("readableDate", (dateObj, zone) => {
|
||||
return DateTime.fromJSDate(dateObj, { zone: zone || "utc" })
|
||||
.toLocaleString(DateTime.DATE_FULL);
|
||||
return DateTime.fromJSDate(dateObj, { zone: "utc" }).toLocaleString(
|
||||
DateTime.DATE_FULL,
|
||||
);
|
||||
});
|
||||
|
||||
/* Filter out structural tags */
|
||||
|
||||
Reference in New Issue
Block a user