From c1bd1d397d435b8255734d2681336786d5d37b83 Mon Sep 17 00:00:00 2001 From: chroju Date: Fri, 6 Jan 2023 09:11:12 +0900 Subject: [PATCH] Update README.md Signed-off-by: chroju --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9a5904bbd..725e8d6a9 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ ___ * [`{{sha}}`](#sha) * [`{{base_ref}}`](#base_ref) * [`{{is_default_branch}}`](#is_default_branch) - * [`{{date ''}}`](#date-format) + * [`{{date '' tz=''}}`](#date-format) * [Major version zero](#major-version-zero) * [JSON output object](#json-output-object) * [Overwrite labels](#overwrite-labels) @@ -778,14 +778,15 @@ workflow run. Will be empty for a branch reference: Returns `true` if the branch that triggered the workflow run is the default one, otherwise `false`. -#### `{{date ''}}` +#### `{{date '' tz=''}}` -Returns the current date rendered by its [moment format](https://momentjs.com/docs/#/displaying/format/). +Returns the current date rendered by its [moment format](https://momentjs.com/docs/#/displaying/format/). Default `tz` is UTC. -| Expression | Output example | -|--------------------------------------------|-----------------------------------------| -| `{{date 'YYYYMMDD'}}` | `20200110` | -| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` | +| Expression | Output example | +|------------------------------------------------------------|--------------------------------------------| +| `{{date 'YYYYMMDD'}}` | `20200110` | +| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` | +| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a' tz='Asia/Tokyo'}}` | `Saturday, January 11th 2020, 12:25:50 am` | ### Major version zero