We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c63d4e9 commit 3002b3eCopy full SHA for 3002b3e
1 file changed
src/staticbuild.ts
@@ -13,8 +13,7 @@ import { createReloader, Reloader } from "./reloader"
13
const TEMPLATE_FUNCTIONS: Context["fn"] = {
14
dateToISO8601: () => (text, subRender) => {
15
function formatDateWithTemplate(template: string, date: Date) {
16
- var specs = "YYYY:MM:DD:HH:mm:ss".split(":")
17
- date = new Date(date || Date.now() - new Date().getTimezoneOffset() * 6e4)
+ const specs = "YYYY:MM:DD:HH:mm:ss".split(":")
18
19
return date
20
.toISOString()
0 commit comments