ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
65 stars 38 forks source link

feat(html): Add created datetime as a meta tag #1033

Open kesara opened 11 months ago

kesara commented 11 months ago

This change adds the created datetime in the UTC time zone using ISO datetime format for HTML output of an RFC. Example:

  <meta content="2023-09-22T11:16Z" name="created">

Fixes #1032

cabo commented 11 months ago

As per the discussions in SEDATE, +00:00 should be Z now... (Unless you want to express the document was created in Reykjavik.)

kesara commented 11 months ago

As per the discussions in SEDATE, +00:00 should be Z now... (Unless you want to express the document was created in Reykjavik.)

Python standard library is still not supporting Z [1] but I'll change the code so that xml2rfc adds Z instead of +00:00.

[1] https://github.com/python/cpython/issues/90772

kesara commented 11 months ago

Updated created timestamp to show hours and minutes with Z instead of +00:00. Example:

<meta content="2023-09-22T11:16Z" name="created">