mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-12 22:52:09 +02:00
Correct timestamp.format help text to reference date-fns, not dayjs (#527)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user