From 0bf7eaed8112c2a7216ff7e9115f39e6843d88e1 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 12 Aug 2026 08:12:19 -0700 Subject: [PATCH] Correct timestamp.format help text to reference date-fns, not dayjs (#527) --- plugins/template-function-timestamp/src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/template-function-timestamp/src/index.ts b/plugins/template-function-timestamp/src/index.ts index 9e486abf..2fa95dfd 100755 --- a/plugins/template-function-timestamp/src/index.ts +++ b/plugins/template-function-timestamp/src/index.ts @@ -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),