Skip to content

Commit

Permalink
Hugo 0.135 added a date format validator which does not like toLocale…
Browse files Browse the repository at this point in the history
…String() output

toLocaleString() gives 2024-10-10, <time>

but Hugo wants 2024-10-10T<time> which new Date() gives.

Ticket: ENT-12361
  • Loading branch information
craigcomstock committed Oct 4, 2024
1 parent fa03133 commit ea217e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const modulesUpdate = async () => {
// frontmatters
let frontmatter = {
title: index,
date: new Date(version.timestamp).toLocaleString(),
date: new Date(version.timestamp),
id: index,
description: module.description || '',
author: {
Expand Down

0 comments on commit ea217e7

Please sign in to comment.