From 1b4c73842c58f6a821c625bd5cd317363ae3dca0 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Tue, 15 Dec 2020 17:22:22 -0500 Subject: [PATCH 1/2] Correct timestamp format spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The timestamp format specification is slightly incorrect–`IMF-fixdate` does not allow fractional seconds, but Smithy requires that fractional seconds are supported. --- docs/source/1.0/spec/core/protocol-traits.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/1.0/spec/core/protocol-traits.rst b/docs/source/1.0/spec/core/protocol-traits.rst index 9c16d64f269..9913c2a30d2 100644 --- a/docs/source/1.0/spec/core/protocol-traits.rst +++ b/docs/source/1.0/spec/core/protocol-traits.rst @@ -305,7 +305,7 @@ Smithy defines the following built-in timestamp formats: * - http-date - An HTTP date as defined by the ``IMF-fixdate`` production in :rfc:`7231#section-7.1.1.1` (for example, - ``Tue, 29 Apr 2014 18:30:38 GMT``). + ``Tue, 29 Apr 2014 18:30:38 GMT``). NOTE: In addition to the ``IMF-fixdate`` format specified in the RFC, implementations MUST also support fractional seconds (for example, ``Sun, 02 Jan 2000 20:34:56.000 GMT``). * - epoch-seconds - Also known as Unix time, the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, From 99cb76ce58d3cfaea72fbed9c0cafe85c4254364 Mon Sep 17 00:00:00 2001 From: Michael Dowling Date: Fri, 22 Jan 2021 15:11:34 -0800 Subject: [PATCH 2/2] Wrap text and make slight wording tweaks --- docs/source/1.0/spec/core/protocol-traits.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/1.0/spec/core/protocol-traits.rst b/docs/source/1.0/spec/core/protocol-traits.rst index 9913c2a30d2..c5069a9ae20 100644 --- a/docs/source/1.0/spec/core/protocol-traits.rst +++ b/docs/source/1.0/spec/core/protocol-traits.rst @@ -305,7 +305,10 @@ Smithy defines the following built-in timestamp formats: * - http-date - An HTTP date as defined by the ``IMF-fixdate`` production in :rfc:`7231#section-7.1.1.1` (for example, - ``Tue, 29 Apr 2014 18:30:38 GMT``). NOTE: In addition to the ``IMF-fixdate`` format specified in the RFC, implementations MUST also support fractional seconds (for example, ``Sun, 02 Jan 2000 20:34:56.000 GMT``). + ``Tue, 29 Apr 2014 18:30:38 GMT``). Note that in addition to the + ``IMF-fixdate`` format specified in the RFC, implementations MUST + also support optional fractional seconds (for example, + ``Sun, 02 Jan 2000 20:34:56.000 GMT``). * - epoch-seconds - Also known as Unix time, the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970,