From a2a9ffbe7e4fb6f900dc09ba716034efb162ca4f Mon Sep 17 00:00:00 2001 From: Marko Date: Wed, 2 Jun 2021 12:03:33 +0000 Subject: [PATCH] rpc: clarify timestamps (#304) * clarify timestamps * changelog entry * Update spec/rpc/README.md Co-authored-by: Callum Waters Co-authored-by: Callum Waters --- CHANGELOG.md | 1 + spec/rpc/README.md | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdfda7032..c6fdb64f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,3 +5,4 @@ All notable changes to the spec will be documented in this file for easy referen ## [Unreleased] - [RPC] [#276](https://github.com/tendermint/spec/pull/276): Add specification for RPC (@marbar3778) +- [RPC] [#304](https://github.com/tendermint/spec/pull/304): Clarify timestamp format (@marbar3778) diff --git a/spec/rpc/README.md b/spec/rpc/README.md index 77d8f8509..d1dc50579 100644 --- a/spec/rpc/README.md +++ b/spec/rpc/README.md @@ -41,6 +41,14 @@ This file defines the JSON-RPC spec of Tendermint. This is meant to be implement | [BroadcastTxAsync](#broadcasttxasync) | ✅ | ✅ | | [BroadcastEvidence](#broadcastevidence) | ✅ | ✅ | +## Timestamps + +Timestamps in the RPC layer of Tendermint follows RFC3339Nano. The RFC3339Nano format removes trailing zeros from the seconds field. + +This means if a block has a timestamp like: `1985-04-12T23:20:50.5200000Z`, the value returned in the RPC will be `1985-04-12T23:20:50.52Z`. + + + ## Info Routes ### Health