From bda8e7c8f57c1b512521668008f2e7d9fc6b41b4 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 9 Jun 2021 11:50:00 +0100 Subject: [PATCH] Adding info about timezone to date helper info. --- packages/string-templates/scripts/gen-collection-info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/string-templates/scripts/gen-collection-info.js b/packages/string-templates/scripts/gen-collection-info.js index 1977f95d22..7baee1e797 100644 --- a/packages/string-templates/scripts/gen-collection-info.js +++ b/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"],