Skip to content

Commit d7567fe

Browse files
authored
Document {time type='machine'}
1 parent 023ad45 commit d7567fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/view/template-plugins.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ Acceptables inputs are either a `\DateTimeInterface` or an integer representing
729729
{time time=$time}
730730
{time time=$time type='plainTime'}
731731
{time time=$time type='plainDate'}
732+
{time time=$time type='machine'}
732733
{time time=$time type='custom' format='Y-m-d'}
733734
```
734735

@@ -742,6 +743,7 @@ Acceptables inputs are either a `\DateTimeInterface` or an integer representing
742743
|| An interactive `<woltlab-core-date-time>` element that renders as dynamically updated relative times. |
743744
| plainTime | Date with time in the user’s locale and timezone as a plain string. |
744745
| plainDate | Date without time in the user’s locale and timezone as a plain string. |
746+
| machine | A machine readable string in ISO-8601 format. |
745747
| custom | A custom format that is passed to `\DateTimeInterface::format()`. The timezone will be the user’s timezone. |
746748

747749

0 commit comments

Comments
 (0)