Skip to content

Use RFC 3339/ISO 8601 in generating form - #76

Merged
nightwatchcyber merged 1 commit into
securitytxt:masterfrom
joker314:date-fmt-rfc3339
May 28, 2021
Merged

nightwatchcyber merged 1 commit into
securitytxt:masterfrom
joker314:date-fmt-rfc3339

Conversation

@joker314

@joker314 joker314 commented Apr 15, 2021

Copy link
Copy Markdown
Contributor

The specification has been updated with respect to the format for which dates and times should be outputted in the Expires field.
This pull request can therefore take advantage of JavaScript's built in .toISOString() to format the date.

  • .toISOSting() always uses UTC for its timezone. This behaviour is different to the old version of the form, which would use the local timezone of the user. I think that this change is fine but may
  • It may be a good idea to add some kind of notice to the website to tell people to update their security.txt files to change the format of their preexisting Expires fields

Resolves #75

@joker314
joker314 marked this pull request as ready for review April 16, 2021 18:07
@joker314

joker314 commented Apr 16, 2021

Copy link
Copy Markdown
Contributor Author

That other work can be left for later, I think it's ok to undraft this PR. Should it be merged after the new draft is submitted and published by the IETF?

@nightwatchcyber
nightwatchcyber merged commit c02e613 into securitytxt:master May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update generator to support the RFC 3339 / ISO 8601 format

2 participants