Correct timestamp.format help text to reference date-fns, not dayjs (#527)

This commit is contained in:
Gregory Schier
2026-08-12 08:12:19 -07:00
committed by GitHub
parent 784a3d3a32
commit 0bf7eaed81
@@ -42,7 +42,9 @@ const expressionArg: TemplateFunctionArg = {
const formatArg: TemplateFunctionArg = {
name: "format",
label: "Format String",
description: "Format string to describe the output (eg. 'yyyy-MM-dd at HH:mm:ss')",
description:
"date-fns format string to describe the output (eg. \"yyyy-MM-dd 'at' HH:mm:ss\"). " +
"Wrap literal text in single quotes to escape it",
optional: true,
placeholder: "yyyy-MM-dd HH:mm:ss",
type: "text",
@@ -79,7 +81,7 @@ export const plugin: PluginDefinition = {
},
{
name: "timestamp.format",
description: "Format a date using a dayjs-compatible format string",
description: "Format a date using a date-fns format string",
args: [dateArg, formatArg],
previewArgs: [formatArg.name],
onRender: async (_ctx, args) => formatDatetime(args.values),