diff options
author | Simon McVittie <smcv@debian.org> | 2014-07-01 08:52:48 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-09-01 09:01:07 +0100 |
commit | 26d62b386ec0a2ee8f0c00cf48ccc21a8213063b (patch) | |
tree | ad5ae394b5529c518a45665f11c5bad19506258e /doc/ikiwiki | |
parent | d4b116d3bf1c0b070b971f553c97c213ef19cd4f (diff) | |
download | ikiwiki-26d62b386ec0a2ee8f0c00cf48ccc21a8213063b.tar ikiwiki-26d62b386ec0a2ee8f0c00cf48ccc21a8213063b.tar.gz |
edittemplate: use unambiguous RFC 3339 datestamps
These take into account the timezone offset (and convert it to UTC+0000)
rather than being in an unspecified timezone.
Diffstat (limited to 'doc/ikiwiki')
-rw-r--r-- | doc/ikiwiki/directive/edittemplate.mdwn | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/ikiwiki/directive/edittemplate.mdwn b/doc/ikiwiki/directive/edittemplate.mdwn index 11cc89851..6269f5dd8 100644 --- a/doc/ikiwiki/directive/edittemplate.mdwn +++ b/doc/ikiwiki/directive/edittemplate.mdwn @@ -39,6 +39,8 @@ These variables might be set: (Requires the `UUID::Tiny` Perl module if not running on Linux.) * `<TMPL_VAR time>` is replaced with the current (template generation) - time, using a fixed format, `%Y-%m-%d %H:%M:%S`. + time using a fixed format (RFC 3339, `%Y-%m-%dT%H:%M:%SZ`), + suitable for use in `\[[!meta date="<TMPL_VAR time>"]]` + (see [[meta]]) or `\[[!date "<TMPL_VAR time>"]]` (see [[date]]). [[!meta robots="noindex, follow"]] |