From d7567fe33b989ffce0593a89962dade32aea7de7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= <duesterhus@woltlab.com> Date: Thu, 25 May 2023 11:52:00 +0200 Subject: [PATCH] Document `{time type='machine'}` --- docs/view/template-plugins.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/view/template-plugins.md b/docs/view/template-plugins.md index 15545ab1..90ddd76b 100644 --- a/docs/view/template-plugins.md +++ b/docs/view/template-plugins.md @@ -729,6 +729,7 @@ Acceptables inputs are either a `\DateTimeInterface` or an integer representing {time time=$time} {time time=$time type='plainTime'} {time time=$time type='plainDate'} +{time time=$time type='machine'} {time time=$time type='custom' format='Y-m-d'} ``` @@ -742,6 +743,7 @@ Acceptables inputs are either a `\DateTimeInterface` or an integer representing | â | An interactive `<woltlab-core-date-time>` element that renders as dynamically updated relative times. | | plainTime | Date with time in the userâs locale and timezone as a plain string. | | plainDate | Date without time in the userâs locale and timezone as a plain string. | +| machine | A machine readable string in ISO-8601 format. | | custom | A custom format that is passed to `\DateTimeInterface::format()`. The timezone will be the userâs timezone. | -- 2.20.1