cartesi / rollups

Cartesi Rollups
30 stars 12 forks source link

fix(offchain): fixed timestamp in graphql #231

Closed gligneul closed 1 year ago

gligneul commented 1 year ago

The timestamp was intepreted in milliseconds, but it should be interpreted in seconds. Also removes the chrono dependency because it is not necessary.

gligneul commented 1 year ago

Tested with examples and it fixes the issue:

{
  "data": {
    "inputs": {
      "edges": [
        {
          "node": {
            "timestamp": 1693868070
          }
        }
      ]
    }
  }
}