From: Tim Düsterhus <duesterhus@woltlab.com>
Date: Thu, 25 May 2023 09:52:00 +0000 (+0200)
Subject: Document `{time type='machine'}`
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7567fe33b989ffce0593a89962dade32aea7de7;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git

Document `{time type='machine'}`
---

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. |