diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-10 14:08:15 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-10 17:15:00 +0100 |
commit | bb98aec6743ee6cfde593a0bb30d5d1c43f8b0cb (patch) | |
tree | b99b314c2166933c3a4e3843173e5cba9789555e /contrib/linearize | |
parent | 29fad97c320c892ab6a480c81e2078ec22ab354b (diff) | |
parent | a7324bd799591546c2ae069f29cb82a66d427769 (diff) | |
download | bitcoin-bb98aec6743ee6cfde593a0bb30d5d1c43f8b0cb.tar.xz |
Merge #12567: util: Print timestamp strings in logs using ISO 8601 formatting
a7324bd79 Format timestamps using ISO 8601 formatting (e.g. "2018-02-28T12:34:56Z") (practicalswift)
Pull request description:
Print timestamp strings in logs using [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) formatting (e.g. `2018-02-28T12:34:56Z`):
* `Z` is the zone designator for the zero [UTC](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) offset.
* `T` is the delimiter used to separate date and time.
This makes it clear for the end-user that the date/time logged is specified in UTC and not in the local time zone.
Before this patch:
```
2018-02-28 12:34:56 New outbound peer connected: version: 70015, blocks=1286123, peer=0
```
After this patch:
```
2018-02-28T12:34:56Z New outbound peer connected: version: 70015, blocks=1286123, peer=0
```
Tree-SHA512: 52b53c3d3d11ddf4af521a3b5f90a79f6e6539ee5955ec56a5aa2c6a5cf29cecf166d8cb43277c62553c3325a31bcea83691acbb4e86429c523f8aff8d7b210a
Diffstat (limited to 'contrib/linearize')
0 files changed, 0 insertions, 0 deletions