note in aerc-templates.7.scd for toLocal function

This commit is contained in:
sqwishy 2020-02-25 14:44:20 -08:00 committed by Drew DeVault
parent 5ba1569734
commit 31489e3baa
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,8 @@ available always.
The _dateFormat_ function can be used to format the date and time. The _dateFormat_ function can be used to format the date and time.
The _toLocal_ function converts a time to the local time zone.
Example: Example:
Format the date to go's time package format options. Format the date to go's time package format options.
@ -54,6 +56,11 @@ available always.
{{dateFormat .Date "Mon Jan 2 15:04:05 -0700 MST 2006"}} {{dateFormat .Date "Mon Jan 2 15:04:05 -0700 MST 2006"}}
``` ```
Format the date in the local time zone.
```
{{dateFormat (.Date | toLocal) "Mon Jan 2 15:04:05 -0700 MST 2006"}}
```
*Subject* *Subject*
The subject of the email is available for quoted reply and forward. The subject of the email is available for quoted reply and forward.