Browse Source

Adding info about timezone to date helper info.

pull/4023/head
mike12345567 5 years ago
parent
commit
bda8e7c8f5
  1. 4
      packages/string-templates/scripts/gen-collection-info.js

4
packages/string-templates/scripts/gen-collection-info.js

@ -19,8 +19,8 @@ const ADDED_HELPERS = {
date: {
args: ["datetime", "format"],
numArgs: 2,
example: '{{date now "DD-MM-YYYY"}} -> 21-01-2021',
description: "Format a date using moment.js date formatting.",
example: '{{date now "DD-MM-YYYY" "America/New_York" }} -> 21-01-2021',
description: "Format a date using moment.js date formatting - the timezone is optional and uses the tz database.",
},
duration: {
args: ["time", "durationType"],

Loading…
Cancel
Save