issue-tracker icon indicating copy to clipboard operation
issue-tracker copied to clipboard

Docs: Incorrect time units in API specs

Open hungdoansy opened this issue 3 years ago • 0 comments

Hi,

Date param in this doc (/dateToBlock) should be in seconds, not milliseconds.

I tried 2 samples of date: 2021-01-01 00:00:00 UTC

  1. 1609459200
{
  "date": "2021-01-01T00:00:00+00:00",
  "block": 11565019,
  "timestamp": 1609459200
}
  1. 1609459200000
{
  "date": "52971-09-25T00:00:00+00:00",
  "block": 13942748,
  "timestamp": 1641349166
}

hungdoansy avatar Jan 05 '22 02:01 hungdoansy