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),